/* Peka CRM v4 - light paper theme (ivory + ink + Peka yellow + navy).
   One design system for the public landing page and the admin dashboard.
   No CDN: all assets are vendored locally. */
:root {
  --paper: #F5F1E8;
  --paper-soft: #FBF9F3;
  --card: #FFFFFF;
  --card-warm: #FDFCF8;
  --ink: #1B2436;
  --ink-soft: #12203E;
  --muted: #667085;
  --muted-2: #98A2B3;
  --line: #E5DFCE;
  --line-soft: #EFEAD9;
  --accent: #FFD60A;
  --accent-dark: #C9A227;
  --accent-deep: #A98307;
  --navy: #12203E;
  --navy-soft: #2A3A5F;
  --gold: #B08D4F;
  --green: #12794F;
  --red: #B42318;
  --shadow: 0 1px 2px rgba(18, 32, 62, 0.06), 0 8px 24px -12px rgba(18, 32, 62, 0.18);
  --shadow-hover: 0 2px 4px rgba(18, 32, 62, 0.08), 0 16px 32px -12px rgba(18, 32, 62, 0.28);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--ink-soft); text-decoration: underline; }

.mono {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: -0.01em;
}

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

/* --- Top navigation (legacy pages) --- */
.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  height: 56px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: baseline;
}

.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--ink); font-size: 13px; font-weight: 500; }
.nav-links a:hover { color: var(--accent-deep); text-decoration: none; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-sync { margin: 0; }
.nav-logout { color: var(--muted); font-size: 13px; }
.nav-logout:hover { color: var(--ink); text-decoration: none; }

/* --- Layout --- */
.container { max-width: 1180px; margin: 0 auto; padding: 20px; }

h1 { font-size: 20px; margin: 4px 0 16px; color: var(--ink-soft); }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--ink-soft); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-2 .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 16px; }

/* --- KPI cards --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  padding: 16px;
  margin-bottom: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.kpi-value { font-size: 24px; font-weight: 800; color: var(--ink-soft); }
.kpi-note { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* --- Tables --- */
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th, .table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table tbody tr:hover { background: var(--paper-soft); }
.table td { color: var(--ink); }

/* --- Lists --- */
.plain-list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.plain-list li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.plain-list li:last-child { border-bottom: 0; }
.notes-list li { white-space: pre-wrap; }

/* --- Forms --- */
.field { display: block; margin-bottom: 12px; }
.field span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }

input[type="text"], input[type="password"], input[type="date"],
input[type="search"], select, textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.35);
}
textarea { resize: vertical; }

.filter-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filter-form .field { flex: 1; min-width: 160px; margin-bottom: 0; }

.inline-form { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 16px; }

.row-form { display: inline-block; margin: 0 4px 4px 0; }
.row-form select { width: auto; padding: 4px 6px; font-size: 12px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { border-color: var(--muted-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #111111; box-shadow: 0 2px 8px -2px rgba(201, 162, 39, 0.5); }
.btn-primary:hover { background: #FFE14D; border-color: #FFE14D; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: rgba(180, 35, 24, 0.5); color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: rgba(180, 35, 24, 0.06); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* --- Flash messages --- */
.flashes { margin-bottom: 16px; }
.flash {
  background: #FFF8D6;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

/* --- Contact info grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
  margin: 0 0 8px;
}
.info-grid dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.info-grid dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }

/* --- Constellation --- */
.constellation-panel { position: relative; }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { margin-bottom: 0; }
#constellation-wrap {
  position: relative;
  height: 420px;
  margin-top: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
#constellation-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#constellation-canvas:active { cursor: grabbing; }
#constellation-tip {
  position: absolute;
  pointer-events: none;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  z-index: 5;
}
#constellation-tip .mono { color: var(--accent-deep); }
#constellation-fallback[hidden] { display: none; }
#constellation-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* --- Login page --- */
.login-page { overflow: hidden; }
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  pointer-events: none;
}
.login-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-hover);
}
.login-brand { margin: 0; color: var(--ink-soft); font-size: 24px; text-align: center; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 20px; }

/* --- App shell (sidebar + topbar) --- */
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--navy);
  color: #E5E7EB;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand { padding: 4px 10px 18px; font-size: 18px; color: #FFFFFF; }
.sidebar-brand:hover { color: var(--accent); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 500;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent); text-decoration: none; }
.side-nav a.active { background: rgba(255, 214, 10, 0.16); color: var(--accent); }
.side-logout {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 8px;
  color: #94A3B8;
  font-size: 13px;
}
.side-logout:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; text-decoration: none; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-weight: 800; font-size: 15px; color: var(--ink-soft); }

/* --- Charts (pure SVG / CSS, no CDN) --- */
.kpi-grid-6 { grid-template-columns: repeat(6, 1fr); }
.chart-card { overflow: hidden; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { flex-shrink: 0; }
.donut-total { fill: var(--ink-soft); font-size: 26px; font-weight: 800; }
.donut-caption { fill: var(--muted); font-size: 11px; }
.donut-legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.donut-legend .mono { margin-left: auto; color: var(--muted); padding-left: 16px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}
.bar-label { overflow-wrap: anywhere; }
.bar-track { background: var(--paper-soft); border: 1px solid var(--line-soft); border-radius: 4px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.bar-sub { margin: 0 0 8px 150px; }
.stat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mini-stat { background: var(--paper-soft); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; }
.mini-label { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.mini-value { font-size: 20px; font-weight: 800; color: var(--ink-soft); }
.stack-col { display: flex; flex-direction: column; gap: 16px; }
.stack-col .card { margin-bottom: 0; }
.cell-ellipsis {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Public landing page (v4) --- */
.landing-wrap { position: relative; z-index: 1; }
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
}
.landing-nav .brand { font-size: 18px; }
.landing-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  gap: 8px;
}
.landing-search input { flex: 1; }
.status-bar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: 1px;
}
.landing-hero {
  text-align: left;
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 24px 12px;
}
.landing-hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}
.landing-hero h1 .hl {
  background: var(--accent);
  padding: 0 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.landing-sub { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0; }
.hero-stats {
  max-width: 1160px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hero-stat {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.hero-stat .kpi-label { color: #CBD5E1; }
.hero-stat .kpi-value { color: #FFFFFF; font-size: 30px; }
.hero-stat.gold { background: var(--accent); color: #111111; }
.hero-stat.gold .kpi-label { color: rgba(17, 17, 17, 0.65); }
.hero-stat.gold .kpi-value { color: #111111; }

.landing-section { max-width: 1160px; margin: 0 auto; padding: 28px 24px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; margin-bottom: 4px; }
.section-note { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.sync-note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid .card { margin-bottom: 0; }

/* Chart grid */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-grid .card { margin-bottom: 0; }
.chart-card-wide { grid-column: 1 / -1; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 0 0 4px; }
.chart-sub { color: var(--muted); font-size: 12px; margin: 0 0 14px; }

/* Vertical bar chart (pure CSS) */
.vbar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding: 8px 4px 0;
  border-bottom: 2px solid var(--line);
}
.vbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.vbar-bar {
  width: 100%;
  max-width: 34px;
  min-height: 3px;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 4px 4px 0 0;
}
.vbar-bar.alt { background: var(--navy); border-color: var(--navy); }
.vbar-value { font-size: 11px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.vbar-labels { display: flex; gap: 6px; padding: 6px 4px 0; }
.vbar-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Period pills + filter pills */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.pill:hover { border-color: var(--accent-dark); text-decoration: none; }
.pill-active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pill-active:hover { color: #FFFFFF; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row .search-inline { flex: 1; min-width: 200px; display: flex; gap: 8px; }
.filter-row .search-inline input { flex: 1; }

/* Post cards (Postingan Terbaru) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-card h3 { font-size: 14px; margin: 0; line-height: 1.4; color: var(--ink-soft); }
.post-card h3 a { color: var(--ink-soft); }
.post-excerpt { font-size: 12px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { font-size: 12px; color: var(--muted-2); }
.post-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.platform-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}
.pb-ig { background: #C026D3; }
.pb-threads { background: var(--navy); }
.pb-fb { background: #2563EB; }
.pb-blog { background: var(--gold); }
.tag-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

/* Best content */
.best-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.best-card {
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--card-warm);
}
.best-card.gold { background: #FFF7CC; border-color: #F2D98C; }
.best-card.navy { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.best-card.navy h3, .best-card.navy .best-title { color: #FFFFFF; }
.best-card.navy .muted { color: #CBD5E1; }
.best-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); }
.best-card.navy .best-kind { color: var(--accent); }
.best-title { font-size: 15px; font-weight: 700; margin: 6px 0; color: var(--ink-soft); }
.best-title a { color: inherit; }

/* Blog article cards with covers */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cover-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-soft); }
.cover-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, #31456E 55%, var(--gold) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.article-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-body h3 { font-size: 14px; margin: 0; line-height: 1.4; color: var(--ink-soft); }
.article-body h3 a { color: var(--ink-soft); }
.article-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.article-meta .mono { font-size: 12px; }
.article-body .post-excerpt { margin-top: 2px; }
.article-body .btn { margin-top: auto; align-self: flex-start; }

/* Detail rows (kontak / audiens / penjualan) */
.detail-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-pct { color: var(--muted); font-size: 12px; min-width: 52px; text-align: right; }

/* Activity feed */
.activity-list { margin: 0; padding: 0; list-style: none; }
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: 0; }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  flex-shrink: 0;
  margin-top: 5px;
}
.activity-dot.navy { background: var(--navy); border-color: var(--navy); }
.activity-dot.green { background: var(--green); border-color: var(--green); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tool-card h3 { font-size: 14px; margin: 0; color: var(--ink-soft); }
.tool-card h3 a { color: var(--ink-soft); }
.tool-cat {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.tool-stars { font-size: 12px; color: var(--accent-deep); font-weight: 700; }
.tool-card p { font-size: 12px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Landing footer + CTA */
.landing-foot { max-width: 1160px; margin: 0 auto; padding: 24px 24px 48px; text-align: center; }
.landing-foot p { margin: 4px 0; }
.landing-cta {
  max-width: 1160px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.landing-cta .card {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
}
.landing-cta h2 { color: #FFFFFF; margin: 0 0 4px; font-size: 18px; }
.landing-cta p { color: #CBD5E1; margin: 0; font-size: 13px; }

@media (max-width: 1200px) {
  .kpi-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 10px; }
  .topnav { gap: 12px; padding: 0 12px; }
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
  }
  .sidebar-brand { padding: 4px 8px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-logout { margin: 0 0 0 auto; padding: 9px 10px; }
  .app-topbar { padding: 0 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .landing-hero { padding: 32px 16px 8px; }
  .landing-hero h1 { font-size: 32px; }
  .bar-row { grid-template-columns: 100px 1fr 40px; }
  .bar-sub { margin-left: 110px; }
  .chart-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .best-grid { grid-template-columns: 1fr; }
  .landing-nav { flex-wrap: wrap; }
  .landing-search { max-width: none; order: 3; flex-basis: 100%; }
}

@media (max-width: 560px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .landing-section .stat-grid { grid-template-columns: 1fr; }
  .donut-wrap { justify-content: center; }
  .post-grid, .article-grid, .tool-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .vbar-value { display: none; }
}
