/* ============================================================
   Activity Log — 360eDash
   Mengikuti design token guide.html (Poppins, teal/orange, status
   semantik) supaya menyatu dengan halaman lain di dashboard.
   Semua class diberi prefix "al-" supaya tidak bentrok dengan
   halaman lain yang hidup bersamaan di DOM.
============================================================= */

.al-page {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
}

.al-page * { box-sizing: border-box; }

.al-page button,
.al-page select,
.al-page input {
  font-family: inherit;
}

/* ---------- Page head ---------- */
.al-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.al-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.al-page-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.al-page-head p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}
.al-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Stat cards ---------- */
.al-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.al-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.al-stat-card:hover {
  box-shadow: 0 10px 24px rgba(15, 106, 113, .08);
  transform: translateY(-1px);
}
.al-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.al-stat-icon-primary { background: var(--primary-soft); color: var(--primary); }
.al-stat-icon-info     { background: var(--info-soft);    color: var(--info); }
.al-stat-icon-warning   { background: var(--warning-soft); color: var(--warning); }
.al-stat-icon-success   { background: var(--success-soft); color: var(--success); }

.al-stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  display: block;
}
.al-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Generic card ---------- */
.al-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.al-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.al-card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.al-card-title i { color: var(--primary); font-size: 14px; }
.al-card-count {
  font-size: 12.5px;
  font-weight: 500;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Toolbar / filters ---------- */
.al-toolbar-card { padding: 16px 20px; }
.al-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.al-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.al-field label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.al-field-search { flex: 1 1 220px; min-width: 200px; }

.al-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.al-input-wrap i {
  position: absolute;
  left: 12px;
  font-size: 12.5px;
  color: var(--muted);
  pointer-events: none;
}
.al-input-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px 9px 34px;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.al-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.al-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.al-select-wrap select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 32px 9px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  min-width: 150px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.al-select-wrap select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.al-select-wrap i {
  position: absolute;
  right: 12px;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}

.al-date-input {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.al-date-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.al-reset-btn { margin-left: auto; }

/* ---------- Table ---------- */
.al-table-card { padding: 0; overflow: hidden; }
.al-table-card .al-card-head {
  padding: 20px 22px 16px;
  margin-bottom: 0;
}
.al-table-wrap { overflow-x: auto; }

.al-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}
.al-table thead tr { background: var(--primary); }
.al-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  padding: 13px 16px;
  white-space: nowrap;
}
.al-table th:first-child { padding-left: 22px; }
.al-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink);
}
.al-table td:first-child { padding-left: 22px; color: var(--muted); }
.al-table tbody tr:last-child td { border-bottom: none; }
.al-table tbody tr:hover { background: var(--primary-soft); }
.al-table tbody tr:hover td { background: transparent; }

.al-user-cell { display: flex; flex-direction: column; gap: 2px; }
.al-user-name { font-weight: 600; font-size: 13px; }
.al-user-email { font-size: 11.5px; color: var(--muted); }

.al-time-cell { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.al-time-date { font-weight: 500; }
.al-time-clock { font-size: 11.5px; color: var(--muted); }

.al-detail-cell { max-width: 280px; line-height: 1.5; }

/* Negara asal — dipakai di tabel Riwayat Aktivitas, mengikuti gaya
   yang sama dengan flag/nama negara pada bagian Analitik Aktivitas
   di atas, supaya kedua bagian terasa satu kesatuan data. */
.al-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.al-device-cell { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.al-device-name { font-size: 12.5px; }
.al-device-ip { font-size: 11.5px; color: var(--muted); font-family: 'Poppins', sans-serif; }

/* Activity type badges */
.al-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.al-type-badge i { font-size: 10px; }
.al-type-login          { background: var(--info-soft);    color: var(--info); }
.al-type-logout         { background: #EFEFF2;             color: var(--muted); }
.al-type-solar-calculator { background: var(--warning-soft); color: var(--warning); }
.al-type-admin-calculator { background: var(--primary-soft); color: var(--primary-dark); }
.al-type-export-report  { background: var(--success-soft); color: var(--success); }
.al-type-visitors       { background: #F1EDFC;             color: #7C5CE0; }
.al-type-language       { background: var(--success-soft); color: var(--success); }
.al-type-other          { background: #EFEFF2;             color: var(--muted); }

.al-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 20px;
  color: var(--muted);
  text-align: center;
}
.al-table-empty[hidden] { display: none; }
.al-table-empty i { font-size: 30px; color: var(--border); }
.al-table-empty p { font-size: 13.5px; }

/* ---------- Table footer / pagination ---------- */
.al-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  flex-wrap: wrap;
}
.al-page-info {
  font-size: 12.5px;
  color: var(--muted);
}
.al-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}
.al-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.al-page-btn:hover:not(:disabled):not(.is-active) {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-header);
}
.al-page-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.al-page-btn:disabled { opacity: .45; cursor: not-allowed; }
.al-page-dots {
  width: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Loading skeleton state ---------- */
.al-page.is-loading .al-stat-value,
.al-page.is-loading .al-table-wrap {
  position: relative;
  color: transparent !important;
}
.al-page.is-loading .al-table-wrap::after,
.al-page.is-loading .al-stat-value::after { content: ""; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .al-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .al-page-head { flex-direction: column; align-items: stretch; }
  .al-head-actions { justify-content: flex-start; }
  .al-stat-grid { grid-template-columns: 1fr; }
  .al-toolbar { flex-direction: column; align-items: stretch; }
  .al-field-search { min-width: 0; }
  .al-select-wrap select { width: 100%; }
  .al-reset-btn { margin-left: 0; width: 100%; justify-content: center; }
  .al-table-foot { flex-direction: column; align-items: flex-start; }
  .al-pagination { align-self: center; }
}
/* ============================================================
   MARKETING VISITOR ANALYTICS
   Section baru: tren aktivitas login & Solar Calculator per negara,
   perbandingan periode, dan 4 jenis grafik.
============================================================= */

.al-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}
.al-section-label:first-of-type { margin-top: 0; }
.al-section-label i { font-size: 11px; }

/* ---------- Chart card head / controls ---------- */
.am-chart-head { align-items: flex-start; flex-wrap: wrap; }
.am-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.am-export-btn { padding: 8px 14px; font-size: 12.5px; }

.am-compare-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.am-compare-toggle input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* ---------- Segmented control ---------- */
.am-seg {
  display: inline-flex;
  align-items: center;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.am-seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
  white-space: nowrap;
}
.am-seg-btn:hover { color: var(--primary-dark); }
.am-seg-btn.is-active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 1px 4px rgba(15, 106, 113, .18);
}
.am-seg-btn[disabled] { opacity: .4; cursor: not-allowed; }

.am-chart-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.am-chart-type-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Date range row (From/To + quick presets) ---------- */
.am-range-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.am-range-fields {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.am-range-fields .al-field { min-width: 150px; }

/* ---------- Chart wrap ---------- */
.am-chart-wrap {
  position: relative;
  height: 340px;
}

/* ---------- Chart fallback (Chart.js belum/gagal dimuat) ---------- */
.am-chart-wrap-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.am-chart-empty i {
  font-size: 26px;
  color: var(--primary-header);
}
.am-chart-empty p {
  font-size: 13px;
  max-width: 320px;
  line-height: 1.5;
}
.am-chart-retry-btn {
  margin-top: 2px;
  font-size: 12.5px;
  padding: 8px 16px;
}
.am-chart-retry-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Stat card deltas ---------- */
.al-stat-label.is-up { color: var(--success); }
.al-stat-label.is-down { color: var(--danger); }

/* ---------- Tabel ringkasan aktivitas (pick table, referensi admin.html) ---------- */
.am-summary-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 0 20px 14px;
  line-height: 1.6;
}
.am-summary-hint code {
  background: var(--page-bg);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
}
.am-summary-table th:first-child,
.am-summary-table td:first-child { padding-left: 22px; }
.am-pick-table th:first-child,
.am-pick-table td:first-child { width: 34px; padding-right: 0; }
.am-pick-table tbody tr { cursor: pointer; transition: background .12s ease; }
.am-pick-table tbody tr.is-sel { background: var(--primary-soft); }
.am-pick-table tbody tr.is-sel td { background: transparent; }
.am-pick-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.am-type-cell { display: flex; align-items: center; gap: 10px; }
.am-type-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.am-type-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.am-detail-cell { color: var(--muted); font-size: 12.5px; }
.am-pick-table td.am-num { font-variant-numeric: tabular-nums; }
.am-inrange-val { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.am-day-chip {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .am-controls { width: 100%; flex-wrap: wrap; }
  .am-seg { width: 100%; justify-content: space-between; }
  .am-range-row { flex-direction: column; align-items: stretch; }
  .am-range-fields { width: 100%; }
  .am-chart-wrap { height: 280px; }
}

/* ============================================================
   Details button (di dalam kolom "Activity Detail") + modal
   Activity Detail — mengikuti pola visual .um-modal yang sudah
   dipakai di halaman User Management supaya konsisten.
============================================================= */

.al-detail-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.al-detail-text { line-height: 1.5; }

.al-details-btn {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.al-details-btn:hover { color: var(--primary-dark); text-decoration: underline; }
.al-details-btn i { font-size: 11px; }

.al-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 34, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.al-modal-overlay.hidden { display: none; }

.al-modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.28);
  overflow: hidden;
}
.al-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.al-modal-head h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.al-modal-head h3 i { color: var(--primary); font-size: 15px; }
.al-modal-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.al-modal-close:hover { background: var(--page-bg); color: var(--ink); }

.al-modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
}

.al-detail-section { margin-bottom: 18px; }
.al-detail-section:last-child { margin-bottom: 0; }
.al-detail-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.al-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--page-bg);
}
.al-detail-row:last-child { border-bottom: none; }
.al-detail-row span:first-child { color: var(--muted); flex-shrink: 0; }
.al-detail-row span:last-child { color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }

.al-detail-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 12px 0; }

/* ============================================================
   MARKETING ANALYTICS (Meta Pixel) — section baru di dalam
   Activity Log. Data mirror event Meta Pixel yang benar-benar
   dikirim dari Solar Calculator (lihat js/marketing-analytics.js
   & js/marketing-pixel-client.js) — storage terpisah dari Activity
   Log internal, TIDAK PERNAH dicampur ke tabel/backend Activity Log.
============================================================= */

.mkt-card { padding-bottom: 22px; }

.mkt-card-head {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.mkt-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
  max-width: 480px;
}
.mkt-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mkt-head-actions .btn { padding: 8px 14px; font-size: 12.5px; }

.mkt-stat-grid { padding: 0 20px; margin-top: 6px; margin-bottom: 18px; }

/* ---------- Rate chips ---------- */
.mkt-rate-row {
  display: flex;
  gap: 14px;
  padding: 0 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.mkt-rate-chip {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}
.mkt-rate-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
  flex-shrink: 0;
}
.mkt-rate-label {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}
.mkt-rate-label small { font-size: 10.5px; opacity: .85; }

/* ---------- Funnel ---------- */
.mkt-funnel-wrap {
  padding: 0 20px;
  margin-bottom: 22px;
}
.mkt-funnel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mkt-funnel { display: flex; flex-direction: column; gap: 12px; }
.mkt-funnel-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 5px;
}
.mkt-funnel-stage-head i { color: var(--primary); font-size: 11px; margin-right: 4px; }
.mkt-funnel-stage-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt-funnel-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--page-bg);
  overflow: hidden;
}
.mkt-funnel-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width .3s ease;
}

/* ---------- Trend chart ---------- */
.mkt-chart-wrap {
  position: relative;
  height: 260px;
  padding: 0 20px;
}

/* ---------- Empty state ---------- */
.mkt-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 28px 20px 6px;
}
.mkt-is-empty .mkt-empty { display: flex; }
.mkt-is-empty .mkt-chart-wrap,
.mkt-is-empty .mkt-funnel-wrap { opacity: .35; pointer-events: none; }
.mkt-empty i { font-size: 24px; color: var(--primary-header); }
.mkt-empty p { font-size: 12.5px; max-width: 360px; line-height: 1.55; }

/* ---------- Details modal ---------- */
.mkt-modal { max-width: 600px; }
.mkt-modal-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}
.mkt-modal-note code {
  background: var(--page-bg);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .mkt-stat-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .mkt-rate-row { padding: 0 16px; }
  .mkt-funnel-wrap { padding: 0 16px; }
  .mkt-chart-wrap { padding: 0 16px; height: 220px; }
  .mkt-card-head { flex-direction: column; align-items: stretch; }
  .mkt-head-actions { justify-content: space-between; }
}

