/* ==========================================================
   InvoicePro Design System
   ========================================================== */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --border: #e6e8ef;
  --text: #171923;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --primary: #17c974;
  --primary-hover: #0ea968;
  --primary-soft: #e6f9ef;

  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --neutral-soft: #f1f2f6;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16,24,40,0.04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, 0.12);

  --sidebar-w: 248px;
  --topbar-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1c2029;
  --border: #2a2e39;
  --text: #f1f2f6;
  --text-muted: #9aa1b1;
  --text-faint: #6b7280;
  --primary-soft: #0d2b1e;
  --success-soft: #062a20;
  --warning-soft: #2b1e04;
  --danger-soft: #2c0f0f;
  --info-soft: #0c1f39;
  --neutral-soft: #23262f;
}

* { box-sizing: border-box; }
html, body { height: 100%; max-width: 100%; overflow-x: hidden; }

.platform-banner { text-align:center; padding:9px 16px; font-size:13px; font-weight:500; }
.platform-banner-info { background: var(--info-soft); color: var(--info); }
.platform-banner-warning { background: var(--warning-soft); color: var(--warning); }
.platform-banner-danger { background: var(--danger-soft); color: var(--danger); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 4px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

/* ---------- Layout ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 40;
  transition: transform .2s ease;
}
.sidebar-brand {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 16px;
}
.sidebar-brand .logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sidebar-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); margin: 16px 10px 6px; font-weight: 600;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: 13.5px;
  margin-bottom: 2px;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--neutral-soft); color: var(--text); }
.sidebar-link.active { background: var(--primary-soft); color: var(--primary); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }

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

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.topbar-search { display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; width: 320px;
  color: var(--text-faint); font-size: 13px;
}
.topbar-brand { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.topbar-brand .logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12.5px; flex-shrink: 0;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--text-muted);
}
.icon-btn:hover { background: var(--neutral-soft); }
.avatar {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.menu-toggle { display: none; }

.page { padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 22px; }
.page-header .subtitle { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
  padding: 20px;
}
/* Pages that nest .card-header / .card-body inside .card bring their own
   padding — don't double it up on the outer .card in that case. */
.card:has(> .card-header), .card:has(> .card-body), .card:has(> .table-wrap), .card:has(> .table-toolbar) { padding: 0; }
.card-body { padding: 20px; }
.card + .card { margin-top: 16px; }
/* That stacking margin is only for cards in normal (plain block) vertical flow.
   Inside a flex ROW (Overview+Actions, Signups+Status Breakdown, etc.) the
   `gap` property already spaces siblings correctly — adding margin-top on top
   of that pushed the second card down and threw off row alignment. */
.flex > .card + .card, .grid > .card + .card, .grid-2 > .card + .card,
.stat-grid > .card + .card, .stat-grid-2 > .card + .card, .stat-grid-3 > .card + .card,
[class*="grid"] > .card + .card, [class*="flex"] > .card + .card { margin-top: 0; }
/* Consistent vertical rhythm between top-level sections of a Super Admin page
   (flex rows, cards, whatever comes next) — replaces one-off inline margins. */
.sa-content > * + * { margin-top: 16px; }
/* A heading sitting directly before a full-bleed table/toolbar still needs its own padding,
   since the card's own padding was zeroed out above for the table's sake. */
.card:has(> .table-wrap) > h3:first-child,
.card:has(> .table-toolbar) > h3:first-child { padding: 20px 20px 0; margin-top: 0; }

/* "Add another Super Admin" disclosure — sits inside a padding:0 card, so it
   supplies its own spacing; styled as a real toggle button, not a bare marker. */
.sa-add-admin { padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.sa-add-admin summary { list-style: none; width: fit-content; }
.sa-add-admin summary::-webkit-details-marker { display: none; }
.sa-add-admin summary svg { transition: transform .2s ease; }
.sa-add-admin[open] summary svg { transform: rotate(45deg); }
.sa-add-admin-body { margin-top: 16px; max-width: 460px; }
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 18px 20px; }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-card .stat-label { color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon-green { background: var(--primary-soft); color: var(--primary); }
.stat-icon-blue { background: var(--info-soft); color: var(--info); }
.stat-icon-gold { background: rgba(212,165,116,0.18); color: #a8794a; }
.stat-icon-neutral { background: var(--neutral-soft); color: var(--text-muted); }
.stat-card .stat-value { font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.stat-card .stat-delta { font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }
.stat-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
/* Grid items default to min-width:auto, which means a wide child (like a
   table with many columns) can force the ENTIRE grid — and page — wider
   than the viewport instead of scrolling within its own card. This opts
   every grid item out of that behavior so .table-wrap's own horizontal
   scroll works correctly instead of blowing out the whole page layout. */
.grid-2 > * { min-width: 0; }
.stat-grid > *, .stat-grid-2 > *, .stat-grid-3 > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:hover { background: var(--neutral-soft); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(23,201,116,0.25); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 4px 14px rgba(23,201,116,0.35); transform: translateY(-1px); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], input[type=search], input[type=url], input[type=file],
select, textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13.5px; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea { resize: vertical; min-height: 80px; }
.code-textarea {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65;
  min-height: 560px; background: var(--surface-2); tab-size: 2;
}

/* ---------- Visual/HTML content mode switch (blog editor) ---------- */
.mode-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.mode-switch-btn { border: none; background: transparent; padding: 5px 13px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); border-radius: 6px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.mode-switch-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
#quillWrap { margin-top: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
#quillWrap .ql-toolbar { border: none; border-bottom: 1px solid var(--border); background: var(--surface-2); }
#quillWrap .ql-container { border: none; font-size: 15px; }
#quillWrap .ql-editor { min-height: 480px; line-height: 1.7; }
#contentTextarea.code-textarea { margin-top: 10px; }

/* ---------- Cover image upload widget ---------- */
.cover-image-drop {
  position: relative; border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  min-height: 130px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; background: var(--surface-2); transition: border-color .15s ease, background .15s ease;
}
.cover-image-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.cover-image-drop img { width: 100%; height: 150px; object-fit: cover; display: block; }
.cover-image-drop #coverImageEmpty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; padding: 24px 12px; text-align: center; }
.cover-image-drop.has-image #coverImageEmpty { display: none; }
.cover-image-drop #coverImageRemove { position: absolute; top: 8px; right: 8px; background: rgba(20,21,26,0.65); color: #fff; border: none; }
.cover-image-drop #coverImageRemove:hover { background: rgba(20,21,26,0.85); }

/* ---------- Plan usage bars (business Settings) ---------- */
.usage-bar-row { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .usage-bar-row { grid-template-columns: 1fr; gap: 14px; } }
.usage-bar-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.usage-bar-track { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.usage-bar-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s ease; }
.usage-bar-fill.is-full { background: var(--danger); }
.locked-teaser {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.locked-teaser span { flex: 1; min-width: 200px; color: var(--text); font-weight: 500; }
.locked-teaser svg { flex-shrink: 0; }

/* ---------- Plan comparison (Settings > Plan & Billing) ---------- */
.plan-compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; }
.plan-compare-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; display: flex; flex-direction: column; }
.plan-compare-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan-compare-badge { position: absolute; top: -11px; left: 20px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-compare-name { font-weight: 700; font-size: 15px; }
.plan-compare-price { font-size: 26px; font-weight: 800; margin: 6px 0 16px; }
.plan-compare-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.plan-compare-features { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-compare-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); }
.plan-compare-features li svg { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
@media (max-width: 860px) { .plan-compare-grid { grid-template-columns: 1fr; } }

/* ---------- Invoice template gallery (Settings > Invoicing) ---------- */
.template-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.template-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.template-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.template-card.is-locked { opacity: .72; }
.template-preview {
  background: #fff; border: 1px solid var(--tp-line, var(--border)); border-radius: 6px; padding: 8px;
  aspect-ratio: 3/4; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; margin-bottom: 8px;
}
.tp-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--tp-primary); }
.tp-head { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.tp-logo { width: 22px; height: 8px; border-radius: 2px; background: #d8d8dc; }
.tp-title { width: 20px; height: 8px; border-radius: 2px; background: var(--tp-primary); }
.tp-row { height: 5px; border-radius: 2px; background: var(--tp-line, #ececef); }
.tp-row-head { background: var(--tp-fill, #ececef); height: 9px; }
.tp-total { margin-top: auto; height: 9px; width: 60%; align-self: flex-end; border-radius: 2px; background: var(--tp-primary); opacity: .85; }
.template-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }

/* ---------- Visual Template Builder (Phase 2b) ---------- */
.tpl-builder { display: flex; flex-direction: column; height: 78vh; min-height: 560px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.tpl-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.tpl-name-input { border: 1px solid transparent; background: transparent; font-size: 16px; font-weight: 700; padding: 6px 10px; border-radius: 8px; width: 280px; }
.tpl-name-input:hover, .tpl-name-input:focus { border-color: var(--border); background: var(--surface-2); }
.tpl-toolbar-actions { display: flex; gap: 10px; }
.tpl-body { display: flex; flex: 1; min-height: 0; }
.tpl-sidebar { width: 260px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; background: var(--surface); }
.tpl-panel { padding: 16px; border-bottom: 1px solid var(--border); }
.tpl-panel h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.tpl-add-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tpl-add-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; font-size: 11px; color: var(--text-muted); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.tpl-add-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.tpl-canvas-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 30px; overflow: auto; background: var(--surface-2); }
.tpl-canvas-wrap canvas { box-shadow: 0 10px 40px rgba(20,21,26,0.15); background: #fff; }
@media (max-width: 900px) {
  .tpl-body { flex-direction: column; }
  .tpl-sidebar { width: 100%; max-height: 45vh; border-right: none; border-bottom: 1px solid var(--border); }
  .tpl-name-input { width: 160px; }
}
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 34px;
  cursor: pointer;
}
select:hover { border-color: var(--text-faint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-error { border-color: var(--danger) !important; }
.error-text { color: var(--danger); font-size: 12px; margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left; padding: 12px 16px; color: var(--text-muted);
  font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
.table-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.table-filters select, .table-filters input { width: auto; min-width: 150px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: capitalize;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--neutral-soft); color: var(--text-muted); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.empty-state h3 { color: var(--text); font-size: 16px; margin-bottom: 6px; }
.empty-state p { max-width: 340px; margin: 0 auto 18px; font-size: 13.5px; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 17, 21, 0.5);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
  animation: modal-in .15s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Toasts ---------- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 13px 16px; min-width: 280px; display: flex; align-items: center; gap: 10px;
  animation: toast-in .18s ease;
  border-left: 3px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 700; font-size: 18px; }

.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); padding: 20px; }
.error-box {
  text-align: center; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow);
}
.error-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.error-code { font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 8px; }
.error-box h1 { font-size: 21px; margin-bottom: 10px; }
.error-box p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 24px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Invoice / Estimate / Statement "paper" preview ----------
   These printable documents should look identical on every device —
   like a PDF — rather than reflowing their layout on narrow screens.
   The paper keeps a fixed width; on smaller viewports JS scales the
   whole thing down uniformly to fit (see scaleInvoicePapers() in app.js). */
.invoice-paper-outer { overflow: hidden; }
.invoice-paper {
  width: 760px; max-width: 760px; margin: 0 auto;
  transform-origin: top left;
}

/* ---------- Misc ---------- */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ---------- Editable line-items table (invoice/estimate/recurring builder) ----------
   Tighter cell padding than the default data-table so more of each column's
   width reaches the actual <input>/<select> inside it, instead of being
   eaten by padding — this is what makes the Qty/Price fields comfortably
   tappable on mobile instead of squeezed to ~48px. */
.items-table td, .items-table th { padding: 10px 8px; }
.items-table td input, .items-table td select { padding: 8px 9px; }

/* ---------- Row-level view icon (always visible, no scrolling needed) ---------- */
.row-primary { display: flex; align-items: center; gap: 8px; }
.row-view-btn {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); border: none; cursor: pointer;
}
.row-view-btn:hover { background: var(--primary); color: #fff; }
.row-view-btn svg { width: 15px; height: 15px; }

/* Client name + company cell — a robust flex layout that stays aligned
   correctly even when the name wraps to two lines on narrow screens. */
.client-cell { display: flex; align-items: flex-start; gap: 10px; }
.client-cell-text { min-width: 110px; }
.client-cell-name { font-weight: 600; color: var(--text); }
.client-cell-company { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* On narrow screens, pin the primary column (name/number + view icon) so it
   never scrolls out of view even while the rest of a wide table scrolls. */
@media (max-width: 768px) {
  .data-table .col-primary { position: sticky; left: 0; background: var(--surface); z-index: 1; }
}

/* Two-column form rows (business edit, settings, client/invoice forms) were
   never given a mobile stack — fields were squeezing into unreadably narrow
   columns on phones. Applies app-wide (dashboard + Super Admin share app.css). */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Horizontally scrolling tab bar (mobile-friendly) ---------- */
.tab-scroll {
  display: flex; gap: 8px; margin-bottom: 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 2px;
}
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-scroll .btn { flex-shrink: 0; white-space: nowrap; }

/* ---------- Settings: sidebar layout on desktop, horizontal tabs on mobile ---------- */
.settings-tabs-mobile { display: none; }
.settings-layout { display: flex; gap: 28px; align-items: flex-start; }
.settings-sidebar {
  flex: 0 0 220px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 20px;
}
.settings-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.settings-nav-link:hover { background: var(--surface-2); }
.settings-nav-link.is-active { background: var(--primary-soft); color: var(--primary); }
.settings-nav-link svg { flex-shrink: 0; opacity: 0.85; }
.settings-content { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .settings-tabs-mobile { display: flex; }
  .settings-sidebar { display: none; }
  .settings-layout { display: block; }
}

/* ---------- Horizontally scrolling action bar (invoice/estimate view buttons) ---------- */
.action-scroll {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  max-width: 100%;
}
.action-scroll::-webkit-scrollbar { display: none; }
.action-scroll > * { flex-shrink: 0; }
@media (max-width: 768px) {
  .page-header .action-scroll { width: 100%; padding-bottom: 2px; }
}

/* ---------- Chart containers ---------- */
/* Chart.js needs a parent with a fixed, non-canvas-derived height when
   responsive:true is used, otherwise the canvas and its container can
   grow in a feedback loop. This box gives every chart a stable height. */
.chart-box { position: relative; width: 100%; height: 280px; }
.chart-box.chart-box-sm { height: 220px; }
.chart-box canvas { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }

/* ---------- Mobile bottom navigation ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(16,24,40,0.06);
}
.mobile-bottom-nav-inner { display: flex; align-items: stretch; justify-content: space-around; }
.mobile-nav-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; color: var(--text-faint); font-size: 10.5px; font-weight: 600;
  border-radius: 10px;
}
.mobile-nav-link svg { width: 21px; height: 21px; }
.mobile-nav-link.active { color: var(--primary); }
.mobile-nav-link.more-trigger { background: transparent; border: none; cursor: pointer; font-family: inherit; }

.mobile-more-sheet {
  position: fixed; inset: 0; background: rgba(15,17,21,0.5); z-index: 95; display: none;
}
.mobile-more-sheet.open { display: block; }
.mobile-more-panel {
  position: absolute; bottom: 0; left: 0; right: 0; background: var(--surface);
  border-radius: 18px 18px 0 0; padding: 10px 8px calc(16px + env(safe-area-inset-bottom));
  max-height: 70vh; overflow-y: auto;
  animation: sheet-up .18s ease;
}
@keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mobile-more-handle { width: 36px; height: 4px; background: var(--border); border-radius: 999px; margin: 6px auto 12px; }
.mobile-more-panel .sidebar-link { padding: 12px 14px; font-size: 14px; }
.mobile-more-panel .sidebar-section-label { margin: 10px 10px 4px; }

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: none; }
  .topbar-search { display: none; }
  .topbar-brand { display: flex; }
  .topbar { padding: 0 14px; }
  .mobile-bottom-nav { display: block; }
  .stat-grid, .stat-grid-2, .stat-grid-3 { grid-template-columns: 1fr; }
  .page { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)) 16px; }
  .modal { max-width: calc(100vw - 32px); }
  [style*="position:sticky"], [style*="position: sticky"] { position: static !important; top: auto !important; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .table-filters { flex-direction: column; }
  .table-filters select, .table-filters input { width: 100%; min-width: 0; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header > .flex { flex-wrap: wrap; }
  .card-header { flex-wrap: wrap; gap: 10px; }
  .card-header .table-filters { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .card-header .table-filters .btn { flex: 1 1 auto; }

  /* Notification / user dropdowns: anchor as a centered floating panel
     instead of a narrow right-aligned box, so they never spill off-screen
     or look cramped on small phones. */
  #notifMenu, #userMenu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 60px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* ==========================================================
   Marketing Site — Nav, Footer, Sections (v2 — premium pass)
   ========================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw; background: rgba(246,247,251,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-nav { background: rgba(15,17,21,0.85); }
.site-nav .mkt-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.site-nav .mkt-logo .logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; }
.site-nav nav { display: flex; align-items: center; gap: 4px; }
.site-nav nav a.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; }
.site-nav nav a.nav-link:hover { color: var(--text); background: var(--surface-2); }
.site-nav .mkt-cta { background: var(--primary); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 600; margin-left: 8px; }
.site-nav .mkt-cta:hover { background: var(--primary-hover); }
.site-nav .nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 10px); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 150px; z-index: 20; }
.nav-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.nav-dropdown-menu a:hover { background: var(--surface-2); }
.nav-dropdown[open] summary svg { transform: rotate(180deg); }

.mkt-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary);
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 22px; letter-spacing: .01em;
}
.mkt-hero-visual { max-width: 980px; margin: 56px auto 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.mkt-hero-visual .mkt-browser-bar { background: var(--surface-2); padding: 10px 16px; display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.mkt-hero-visual .mkt-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

.mkt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: step; }
.mkt-step { position: relative; padding-left: 4px; }
.mkt-step .step-num { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:10px; background:var(--text); color:#fff; font-weight:800; font-size:15px; margin-bottom:18px; }
.mkt-step h3 { font-size: 17px; margin: 0 0 8px; }
.mkt-step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

.mkt-pricing-band { background: var(--surface-2); }
.mkt-pricing-card { max-width: 420px; margin: 0 auto; background: var(--surface); border: 2px solid var(--primary); border-radius: 18px; padding: 40px 36px; text-align: center; box-shadow: var(--shadow-lg); }
.mkt-pricing-card .price { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 4px; }
.mkt-pricing-card .price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.mkt-pricing-list { list-style: none; padding: 0; margin: 26px 0; text-align: left; }
.mkt-pricing-list li { padding: 9px 0; font-size: 14px; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.mkt-pricing-list li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; }

.mkt-faq { max-width: 760px; margin: 0 auto; }
.mkt-faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.mkt-faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); font-weight: 400; }
.mkt-faq-item[open] summary::after { content: "–"; }
.mkt-faq-item p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; }

.site-footer { border-top: 1px solid var(--border); padding: 60px 6vw 30px; background: var(--surface-2); }
.site-footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer-grid .footer-col h4 { font-size: 13px; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.site-footer-grid .footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 13.5px; margin-bottom: 10px; }
.site-footer-grid .footer-col a:hover { color: var(--primary); }
.site-footer-grid .footer-col p { color: var(--text-muted); font-size: 13.5px; line-height: 1.7; max-width: 260px; margin: 12px 0 0; }
.site-footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 860px) {
  .site-nav { position: sticky; }
  .site-nav nav.nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; padding: 10px 6vw 18px; gap: 4px;
  }
  .site-nav nav.nav-links.nav-open { display: flex; }
  .site-nav nav.nav-links a.nav-link { margin: 0; padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav nav.nav-links a.mkt-cta { margin: 10px 8px 0; text-align: center; }
  .site-nav .nav-toggle { display: block; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 14px; margin-top: 4px; }
  .mkt-steps, .mkt-testimonials { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .mkt-hero h1 { font-size: 34px !important; }
}

/* ==========================================================
   Auth pages (login/register/etc) wrapped in the site shell
   ========================================================== */
.auth-shell { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: var(--bg); }

/* ==========================================================
   Missing dashboard-style helpers used by Super Admin pages
   ========================================================== */
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table tr td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.kv-table tr:last-child td { border-bottom: none; }
.kv-table tr td:first-child { color: var(--text-muted); width: 40%; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; }
.activity-list li:last-child { border-bottom: none; }

/* ==========================================================
   Super Admin — Premium Panel v2
   ========================================================== */
.sa-shell { display: flex; min-height: 100vh; background: var(--bg); }
.sa-sidebar {
  width: 250px; flex-shrink: 0; background: #12141c; color: #cbd0dc;
  padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sa-sidebar .sa-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 24px; }
.sa-sidebar .sa-brand .logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.sa-sidebar .sa-brand-text { font-weight: 800; font-size: 15px; color: #fff; line-height: 1.2; }
.sa-sidebar .sa-badge { display: block; font-size: 9.5px; background: rgba(23,201,116,0.22); color: #5eead4; padding: 2px 7px; border-radius: 5px; font-weight: 700; letter-spacing: .05em; width: fit-content; margin-top: 3px; }
.sa-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sa-nav .sa-nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #565c6d; font-weight: 700; padding: 16px 12px 8px; }
.sa-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #aab0c0; text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.sa-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.sa-nav a:hover { background: #1c1f2b; color: #fff; }
.sa-nav a.active { background: rgba(23,201,116,0.16); color: #fff; font-weight: 700; box-shadow: inset 2px 0 0 var(--primary); }
.sa-nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.sa-sidebar-footer { border-top: 1px solid #22252f; padding-top: 12px; margin-top: 8px; }
.sa-sidebar-footer a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #8b90a0; text-decoration: none; font-size: 13px; transition: background .15s ease, color .15s ease; }
.sa-sidebar-footer a:hover { background: #1c1f2b; color: #fff; }

.sa-main { flex: 1; min-width: 0; }
.sa-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
.sa-topbar h1 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.sa-topbar .sa-breadcrumb { font-size: 12.5px; color: var(--text-faint); margin-bottom: 3px; }
.sa-topbar-right { display: flex; align-items: center; gap: 14px; }
.sa-admin-chip { display: flex; align-items: center; gap: 9px; }
.sa-admin-chip .sa-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(23,201,116,0.3); }
.sa-admin-chip .sa-admin-meta { line-height: 1.25; }
.sa-admin-chip .sa-admin-meta b { font-size: 13px; display: block; }
.sa-admin-chip .sa-admin-meta span { font-size: 11.5px; color: var(--text-muted); }
.sa-content { padding: 28px 32px 60px; max-width: 1400px; }

.sa-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.sa-kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px;
  display: flex; align-items: flex-start; justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sa-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sa-kpi-card .sa-kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.sa-kpi-card .sa-kpi-icon svg { width: 18px; height: 18px; }
.sa-kpi-card .sa-kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; line-height: 1.4; min-height: 2.8em; display: flex; align-items: flex-end; }
.sa-kpi-card .sa-kpi-value { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }

@media (max-width: 1100px) { .sa-kpi-row { grid-template-columns: repeat(2, 1fr); } }

/* Mobile hamburger toggle for the Super Admin sidebar (hidden on desktop) */
.sa-menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.sa-sidebar-overlay { display: none; }

@media (max-width: 860px) {
  .sa-shell { position: relative; overflow-x: hidden; }
  .sa-menu-toggle { display: flex; }
  .sa-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 100;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .sa-sidebar.sa-open { transform: translateX(0); }
  .sa-sidebar-overlay.sa-open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 90; }
  .sa-main { width: 100%; }
  .mobile-bottom-nav { display: block; }
  .sa-topbar { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .sa-topbar h1 { font-size: 17px; }
  .sa-admin-chip .sa-admin-meta { display: none; }
  .sa-content { padding: 18px 16px 50px; }
  .sa-kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sa-kpi-card { padding: 14px 16px; }
  .sa-kpi-card .sa-kpi-value { font-size: 20px; }
  .sa-kpi-card .sa-kpi-icon { width: 32px; height: 32px; font-size: 14px; }
  .stat-grid-3 { grid-template-columns: 1fr 1fr; }
  .table-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .table-filters { flex-direction: column; align-items: stretch; }
  .table-filters input, .table-filters select { width: 100%; }
  .modal { max-width: calc(100vw - 24px); margin: 12px; }
  /* These two-column rows (Overview+Actions, Signup+Maintenance, form+Publish
     sidebar, chart+Status Breakdown) must stack on mobile regardless of which
     align-items value the page happens to use. */
  .flex.gap-16[style*="flex-wrap"] { flex-direction: column; }
  /* Belt-and-braces: nothing inside the Super Admin content area should ever
     be able to force horizontal overflow on mobile. */
  .sa-content, .sa-content * { max-width: 100%; }
  /* Two-column rows use inline min-width (400px/340px/320px/280px) to size nicely
     on desktop — on phones that forces real overflow (content/charts running off
     the edge). Kill it once the row has already stacked to one column. */
  .flex.gap-16[style*="flex-wrap"] > [style*="min-width"] { min-width: 0 !important; }
  /* Breadcrumb is redundant with the sidebar + page heading right below it —
     drop it on mobile to save vertical space. */
  .sa-breadcrumb { display: none; }
  /* Bottom tab bar needs room so content doesn't hide behind it. */
  .sa-content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .stat-grid-3 { grid-template-columns: 1fr; }
}

/* ==========================================================
   Coming Soon / Maintenance page
   ========================================================== */
.maint-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top, #0f2b1e, #0a0b0e 60%); color: #fff; padding: 24px; }
.maint-card { max-width: 480px; text-align: center; }
.maint-card .logo-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; margin: 0 auto 26px; }
.maint-card h1 { font-size: 32px; margin: 0 0 14px; letter-spacing: -0.02em; }
.maint-card p.lead { color: #c7cad1; font-size: 15.5px; line-height: 1.7; margin: 0 0 32px; }
.maint-unlock summary { cursor: pointer; color: #5eead4; font-size: 13px; font-weight: 600; list-style: none; }
.maint-unlock summary::-webkit-details-marker { display: none; }
.maint-unlock form { margin-top: 18px; display: flex; gap: 8px; }
.maint-unlock input[type="password"] { flex: 1; padding: 11px 14px; border-radius: 9px; border: 1px solid #33374a; background: #1a1d29; color: #fff; font-size: 14px; }
.maint-unlock button { background: var(--primary); color: #fff; border: none; padding: 11px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; font-size: 14px; }
.maint-error { color: #fca5a5; font-size: 13px; margin-top: 10px; }

/* ==========================================================
   Marketing page content blocks (hero, sections, feature grid,
   CTA band, static content pages, blog cards)
   ========================================================== */
.mkt-hero { text-align:center; padding:80px 6vw 0; max-width:820px; margin:0 auto; }
.mkt-hero h1 { font-size:52px; line-height:1.12; margin:0 0 20px; letter-spacing:-0.025em; font-weight:800; }
.mkt-hero p.lead { font-size:18.5px; color:var(--text-muted); margin:0 0 34px; line-height:1.65; max-width:620px; margin-left:auto; margin-right:auto; }
.mkt-hero .mkt-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.mkt-btn-primary { background:var(--primary); color:#fff; padding:14px 28px; border-radius:10px; text-decoration:none; font-weight:700; font-size:15px; box-shadow: 0 4px 14px rgba(23,201,116,0.3); }
.mkt-btn-primary:hover { background: var(--primary-hover); }
.mkt-btn-secondary { background:var(--surface); border:1px solid var(--border); color:var(--text); padding:14px 28px; border-radius:10px; text-decoration:none; font-weight:700; font-size:15px; }
.mkt-btn-secondary:hover { border-color: var(--text-faint); }

.mkt-section { max-width:1100px; margin:0 auto; padding:90px 6vw; }
.mkt-section.tight { padding-top: 50px; padding-bottom: 50px; }
.mkt-section h2 { font-size:32px; text-align:center; margin:0 0 12px; letter-spacing:-0.015em; font-weight:800; }
.mkt-section p.section-lead { text-align:center; color:var(--text-muted); max-width:560px; margin:0 auto 52px; font-size:15.5px; line-height:1.6; }
.mkt-eyebrow { display:block; text-align:center; color:var(--primary); font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px; }

.mkt-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:24px; }
.mkt-feature { padding:28px; border:1px solid var(--border); border-radius:16px; background:var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.mkt-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mkt-feature .mkt-icon { width:44px; height:44px; border-radius:12px; background:var(--primary-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:21px; margin-bottom:16px; }
.mkt-feature h3 { font-size:16.5px; margin:0 0 8px; font-weight:700; }
.mkt-feature p { font-size:14px; color:var(--text-muted); line-height:1.65; margin:0; }

.mkt-cta-band { background: linear-gradient(135deg, #171923 0%, #2d2b52 100%); color:#fff; text-align:center; padding:80px 6vw; }
.mkt-cta-band h2 { color:#fff; font-size:32px; margin:0 0 14px; font-weight:800; }
.mkt-cta-band p { color:#c7cad1; margin:0 0 30px; font-size:15.5px; }

.mkt-content { max-width:760px; margin:0 auto; padding:60px 6vw 90px; line-height:1.75; }
.mkt-content h1 { font-size:34px; margin-bottom:8px; font-weight:800; }
.mkt-content h2 { font-size:21px; margin-top:38px; font-weight:700; }
.mkt-content .mkt-updated { color:var(--text-muted); font-size:13px; margin-bottom:36px; }

.blog-card { border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--surface); text-decoration:none; color:inherit; display:block; transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card .blog-card-image-fallback { width:100%; height:170px; background: linear-gradient(135deg, var(--primary-soft), #fce7f3); display:flex; align-items:center; justify-content:center; font-size:34px; }
.blog-card img { width:100%; height:170px; object-fit:cover; display:block; }
.blog-card .blog-card-body { padding:20px; }
.blog-card h3 { font-size:16.5px; margin:0 0 8px; color:var(--text); font-weight:700; line-height:1.4; }
.blog-card p { font-size:13.5px; color:var(--text-muted); margin:0; line-height:1.6; }
.blog-card .blog-date { font-size:12px; color:var(--text-faint); margin-top:12px; display:block; font-weight:600; }

@media (max-width: 640px) {
  .mkt-hero h1 { font-size: 32px; }
  .mkt-hero p.lead { font-size: 16px; }
  .mkt-section { padding: 56px 6vw; }
  .mkt-section h2 { font-size: 26px; }
}

/* ==========================================================
   Marketing page — SVG icon sizing + honest invoice mockup
   (replaces the old fake-data dashboard preview)
   ========================================================== */
.mkt-hero-badge svg { width: 14px; height: 14px; }
.mkt-icon svg { width: 22px; height: 22px; }

.mkt-invoice-mock { background: var(--surface); padding: 30px 34px; }
.mkt-invoice-mock-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.mim-brand { font-weight: 800; font-size: 16px; }
.mim-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.mim-invoice-badge { background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 6px 14px; border-radius: 6px; }
.mkt-invoice-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.mkt-invoice-mock-grid span { display: block; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 5px; }
.mkt-invoice-mock-grid b { font-size: 13.5px; font-weight: 700; }
.mkt-invoice-mock-lines { border-top: 1px solid var(--border); padding-top: 4px; }
.mim-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.mim-line span:last-child { color: var(--text-faint); font-weight: 600; }
.mkt-invoice-mock-total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; margin-top: 6px; }
.mkt-invoice-mock-total span { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.mkt-invoice-mock-total b { font-size: 22px; font-weight: 800; color: var(--text-faint); }

@media (max-width: 640px) {
  .mkt-invoice-mock { padding: 20px; }
  .mkt-invoice-mock-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   Blog listing page — sidebar layout (categories/search/newsletter)
   ========================================================== */
.blog-hero { text-align: center; max-width: 720px; margin: 0 auto; padding: 64px 6vw 20px; }
.blog-hero h1 { font-size: 38px; line-height: 1.25; margin: 10px 0 16px; font-weight: 800; letter-spacing: -0.02em; }
.blog-hero p.lead { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; }

.blog-layout { max-width: 1200px; margin: 0 auto; padding: 30px 6vw 90px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: flex-start; }
.blog-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.blog-search { position: relative; }
.blog-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); }
.blog-search input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; background: var(--surface); color: var(--text); }

.blog-side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.blog-side-card h4 { font-size: 13px; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.blog-cat-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.blog-cat-link:hover { background: var(--surface-2); }
.blog-cat-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.blog-cat-count { font-size: 11.5px; color: var(--text-faint); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.blog-cat-link.active .blog-cat-count { background: #fff; color: var(--primary); }

.blog-newsletter p { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
.blog-newsletter form { display: flex; gap: 6px; }
.blog-newsletter input[type="email"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg); color: var(--text); }
.blog-newsletter button { background: var(--primary); border: none; color: #fff; width: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.blog-newsletter button svg { width: 16px; height: 16px; }
.blog-newsletter-flash { font-size: 12px; padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; }
.blog-newsletter-success { background: var(--success-soft); color: var(--success); }
.blog-newsletter-error { background: var(--danger-soft); color: var(--danger); }

.blog-main-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.blog-sort select { border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 13px; background: var(--surface); color: var(--text); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.blog-card-badge { display: inline-block; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.blog-card-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-faint); margin-top: 14px; font-weight: 600; }
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-hero h1 { font-size: 28px; }
}

/* ==========================================================
   Single blog post page
   ========================================================== */
.blog-post-layout { padding-top: 50px; }
.blog-post-main { max-width: 720px; }
.blog-post-breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }
.blog-post-breadcrumb a { color: var(--text-faint); text-decoration: none; }
.blog-post-breadcrumb a:hover { color: var(--primary); }
.blog-post-title { font-size: 34px; line-height: 1.25; margin: 12px 0 0; font-weight: 800; letter-spacing: -0.02em; }
.blog-post-cover { width: 100%; border-radius: 14px; margin-bottom: 34px; }
.blog-post-content { font-size: 15.5px; line-height: 1.85; color: var(--text); }
.blog-post-content h2 { font-size: 22px; margin-top: 38px; margin-bottom: 12px; font-weight: 700; }
.blog-post-content p { margin: 0 0 18px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 18px; padding-left: 22px; }
.blog-post-content li { margin-bottom: 8px; }
.blog-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.blog-tag { background: var(--surface-2); color: var(--text-muted); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.blog-recent-link { display: block; padding: 10px 8px; border-radius: 8px; text-decoration: none; margin-bottom: 2px; }
.blog-recent-link:hover { background: var(--surface-2); }
.blog-recent-link span { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.blog-recent-link small { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

@media (max-width: 900px) {
  .blog-post-layout { grid-template-columns: 1fr; padding-top: 30px; }
  .blog-post-title { font-size: 26px; }
}

/* ==========================================================
   Homepage v3 — hero with app mockup, feature grid, split
   section, pricing tiers (matches the reference design)
   ========================================================== */
.hero2 { max-width: 1200px; margin: 0 auto; padding: 70px 6vw 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero2-text h1 { font-size: 44px; line-height: 1.15; margin: 16px 0 18px; font-weight: 800; letter-spacing: -0.025em; }
.hero2-text p.lead { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin: 0 0 28px; max-width: 480px; }
.hero2-note { font-size: 12.5px; color: var(--text-faint); margin-top: 16px; font-weight: 600; }
.hero2-visual { position: relative; }

.app-mock { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; overflow: hidden; }
.app-mock-sidebar { width: 54px; background: var(--surface-2); border-right: 1px solid var(--border); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.app-mock-logo { margin-bottom: 6px; }
.app-mock-nav-item { width: 26px; height: 8px; border-radius: 4px; background: var(--border); }
.app-mock-nav-item.active { background: var(--primary); width: 30px; }
.app-mock-body { flex: 1; padding: 20px 22px; min-width: 0; }
.app-mock-toolbar { margin-bottom: 16px; }
.app-mock-search { height: 10px; width: 45%; border-radius: 5px; background: var(--surface-2); }
.app-mock-title { font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.app-mock-invoice-header { margin-bottom: 16px; font-size: 14px; }
.app-mock-row { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.app-mock-field span { display: block; font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 3px; }
.app-mock-field b { font-size: 12.5px; font-weight: 700; }
.app-mock-table { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.app-mock-table-head, .app-mock-table-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; padding: 9px 0; font-size: 12px; }
.app-mock-table-head { color: var(--text-faint); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.app-mock-table-row { color: var(--text); border-bottom: 1px solid var(--border); }
.app-mock-table-row:last-child { border-bottom: none; }
.app-mock-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 13px; font-weight: 700; }
.app-mock-total b { font-size: 16px; }

.hero2-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.hero2-float b { display: block; font-size: 12px; font-weight: 700; }
.hero2-float span { font-size: 11.5px; color: var(--text-muted); }
.hero2-float-1 { top: -18px; right: -18px; }
.hero2-float-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.hero2-float-2 { bottom: -18px; left: -18px; gap: 16px; }
.hero2-float-label { display: block; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.hero2-float-2 b { font-size: 15px; }
.hero2-float-delta { background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

.mkt-grid-5 { grid-template-columns: repeat(5, 1fr); }
.mkt-grid-5 .mkt-feature { padding: 22px 18px; }
.mkt-grid-5 .mkt-icon { width: 38px; height: 38px; margin-bottom: 12px; }
.mkt-grid-5 .mkt-icon svg { width: 18px; height: 18px; }
.mkt-grid-5 h3 { font-size: 14.5px; }
.mkt-grid-5 p { font-size: 12.5px; }

.split-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual { position: relative; }
.app-mock-static { box-shadow: var(--shadow); }
.split-checklist { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 22px; }
.split-checklist li { display: flex; gap: 16px; align-items: flex-start; }
.split-checklist b { display: block; font-size: 15px; margin-bottom: 4px; }
.split-checklist p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.split-check-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.split-check-icon svg { width: 18px; height: 18px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; }
.pricing-card:first-child { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.pricing-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pricing-name { font-weight: 800; font-size: 15px; }
.pricing-badge { background: var(--surface-2); color: var(--text-muted); font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.pricing-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.pricing-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; min-height: 36px; }
.pricing-card .mkt-pricing-list { margin: 0 0 24px; flex: 1; }
.pricing-list-muted li { color: var(--text-faint); }
.pricing-list-muted li::before { color: var(--text-faint); }
.mkt-btn-secondary[disabled] { opacity: .6; cursor: not-allowed; }

@media (max-width: 980px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 40px; }
  .hero2-text h1 { font-size: 32px; }
  .hero2-visual { margin-top: 30px; }
  .mkt-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { order: 2; }
  .split-text { order: 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero2-float { padding: 9px 12px; }
  .hero2-float b { font-size: 11px; }
}
@media (max-width: 560px) {
  .mkt-grid-5 { grid-template-columns: 1fr; }
  .app-mock-table-head span:nth-child(2), .app-mock-table-row span:nth-child(2) { display: none; }
  .app-mock-table-head, .app-mock-table-row { grid-template-columns: 2fr 1fr; }
  .hero2-float-1 { top: -12px; right: -8px; }
  .hero2-float-2 { bottom: -12px; left: -8px; }
}
