/*
 * app-refined.css — REFINED-UI overlay (loaded APP-WIDE).
 *
 * Loaded AFTER app.css via the layout's <link> on every shell page (not just
 * the dashboard — the layout includes it globally). Pure CSS, no markup
 * changes, no build step.
 *
 * Goal: take the clean-but-flat base and make it read like a premium SaaS —
 * distinctive type, soft depth, a clearer color hierarchy, livelier tables,
 * and a single well-orchestrated page-load animation. The brand is the
 * Konnexion AI blue→teal (see :root token note below).
 *
 * Font: Google Fonts CDN. The @import sits at the very top because CSS requires
 * @import before any rule.
 *
 * BRAND FONT = Poppins — the geometric, circular-letterform sans that matches
 * the Konnexion AI logo wordmark. It's the app-wide family: body, headings, and
 * the rail wordmark all use it, so the whole UI reads in the logo's voice. To
 * swap to a different brand font later, change this one @import + the
 * `--brand-font` token below.
 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* ---- Refined token tweaks (scoped by re-declaring on :root) ----
   Konnexion AI brand: blue→teal. The legacy `--r-newt*`/`--r-mint` NAMES are
   kept (this overlay's rules reference them) but the VALUES now point at the
   brand. A warm amber accent stays as an opt-in focal highlight. */
:root {
  /* Values repointed to the official brand kit (brand-spec.md). Shadows keyed
     off the kit ink #042148. */
  --r-shadow-card: 0 1px 2px rgba(4, 33, 72, 0.06), 0 6px 20px rgba(4, 33, 72, 0.08);
  --r-shadow-hover: 0 3px 8px rgba(4, 33, 72, 0.08), 0 16px 36px rgba(4, 33, 72, 0.14);

  --r-bg: #f4f7fb;          /* page bg — kit --bg (cool off-white) */
  --r-newt: #1566e5;        /* brand blue / g1 (primary) */
  --r-newt-600: #0e63c9;    /* text-safe darker blue — kit --accent */
  --r-newt-700: #042148;    /* brand navy / ink — anchors the rail gradient bottom */
  --r-mint: #20c4ba;        /* brand teal / g2 — gradient stop */

  /* Warm secondary accent — used sparingly for focal highlights/CTAs. */
  --r-accent: #e08a3c;
  --r-accent-soft: #fbeede;

  --r-ink: #042148;         /* deep navy headings — kit --ink */
  --r-line: rgba(4, 33, 72, 0.08);
}

/* ---- Typography: the logo's geometric sans, app-wide ----
   `--brand-font` (Poppins) is the single source for the brand typeface so body,
   headings, and the rail wordmark all read in the logo's voice. */
:root {
  --brand-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body {
  font-family: var(--brand-font);
  background:
    radial-gradient(1200px 400px at 80% -5%, rgba(21, 102, 229, 0.07), transparent 60%),
    var(--r-bg);
}
h1, h2, h3, h4 {
  font-family: var(--brand-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 1.7rem; font-weight: 700; }

/* ---- Sidebar: deep navy→blue brand gradient + a hairline sheen ---- */
.sidenav {
  background: linear-gradient(180deg, var(--r-newt-700) 0%, #06306b 100%);
}
/* Brand block (real markup .brand-rail) gets the brand wordmark font + a
   subtly richer navy wash so it reads as a distinct header. */
.brand-rail {
  background: linear-gradient(120deg, #042148 0%, #06306b 100%);
}
.brand-rail-text {
  /* Faithful to the logo: the same geometric sans, bold. */
  font-family: var(--brand-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Active nav item gets a soft glow instead of a flat fill. */
.sidenav a.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sidenav a { transition: background-color 0.15s ease, transform 0.12s ease; }
.sidenav a:hover { transform: translateX(2px); }

/* ---- Topbar avatar: real gradient bubble with a subtle ring ---- */
.topbar .user::before {
  background: linear-gradient(135deg, var(--r-newt), var(--r-mint));
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20, 38, 33, 0.18);
}

/* ---- Cards: depth + a hover lift + a thin top accent ---- */
.card,
.stat-card {
  box-shadow: var(--r-shadow-card);
  border-color: rgba(20, 38, 33, 0.06);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover,
.stat-card:hover {
  box-shadow: var(--r-shadow-hover);
  transform: translateY(-2px);
}

/* Stat cards become the focal hero row: gradient wash + accent keyline +
   big display number. Each tile gets a left accent bar via ::before. */
.stat-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--r-newt), var(--r-mint));
}
.stat-card .value {
  font-family: var(--brand-font);
  font-size: 2.1rem;
  font-weight: 700;
  /* Solid colour fallback FIRST (matches the .brand-rail-ai convention) so the
     hero numbers stay visible if background-clip:text is unsupported. */
  color: var(--r-newt-700);
  background: linear-gradient(135deg, var(--r-newt-700), var(--r-newt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card .label { color: var(--r-newt-600); }

/* ---- Tables: tinted sticky header, zebra rows, smooth hover ---- */
.table { box-shadow: var(--r-shadow-card); border-color: rgba(20,38,33,0.06); }
.table th {
  background: linear-gradient(180deg, #f3f6f5, #eef1f0);
  color: var(--r-newt-600);
}
.table tbody tr { transition: background-color 0.12s ease; }
.table tbody tr:nth-child(even) td { background: #fafbfb; }
.table tbody tr:hover td { background: var(--color-primary-soft); }

/* ---- Buttons: gradient primary + press feedback ---- */
.btn { transition: background-color 0.12s, border-color 0.12s, color 0.12s, transform 0.08s, box-shadow 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--r-newt) 0%, var(--r-newt-600) 100%);
  border-color: var(--r-newt-600);
  box-shadow: 0 1px 2px rgba(20, 38, 33, 0.15), 0 2px 8px rgba(19, 102, 234, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--r-newt) 0%, var(--r-newt-700) 100%);
  box-shadow: 0 2px 4px rgba(20, 38, 33, 0.18), 0 8px 18px rgba(19, 102, 234, 0.34);
}

/* Secondary buttons get a subtle tint so they're not bland gray. */
.btn-secondary {
  background: linear-gradient(180deg, #ffffff, #f4f8f6);
}

/* The warm accent: opt-in highlight for a focal action or banner.
   Add class="btn-accent" to any button to use it. */
.btn-accent {
  background: linear-gradient(135deg, var(--r-accent) 0%, #c9772e 100%);
  border-color: #c9772e;
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 38, 33, 0.15), 0 4px 12px rgba(224, 138, 60, 0.3);
}
.btn-accent:hover { filter: brightness(1.05); color: #fff; }

/* ---- Badges: a bit softer/rounder ---- */
.badge { border-radius: 999px; padding: 3px 10px; }

/* ---- Page-title icon chips ----
   Every tenant page's <h1> gets a rounded brand-gradient "chip" icon to its left,
   driven by the body's `data-page` attribute — no markup edits per page.
   The chip is the h1's ::before; the glyph is a white-stroke SVG mask so a
   single rule colours it with the brand gradient. */
.content h1 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.content h1::before {
  content: "";
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--r-newt), var(--r-mint));
  box-shadow: 0 2px 8px rgba(19, 102, 234, 0.28);
  /* The page glyph is applied as a white mask over the gradient. */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* Default fallback glyph (overridden per page below): a spark/star. */
  -webkit-mask-image: none;
  mask-image: none;
}
/* When a page has no specific icon, hide the empty chip rather than show a
   blank square. Each mapped page re-enables it with its glyph. */
.content h1::before { background: none; box-shadow: none; }

/* Helper: a mapped page sets the chip background back + a glyph. We express
   the glyph as a foreground gradient masked by an inline SVG. */
[data-page] .content h1::before {
  background: linear-gradient(135deg, var(--r-newt), var(--r-mint));
  box-shadow: 0 2px 8px rgba(19, 102, 234, 0.28);
}
/* The glyph SVGs use a white fill/stroke; we render them via a child <svg>
   approach isn't possible without markup, so we use a CSS mask on a white
   block. Implement by layering: the chip shows the gradient, and an inner
   ::after positioned over it carries the icon. Simpler: use background-image
   (white-stroke SVG) composited on top of the gradient via two backgrounds. */
[data-page] .content h1::before {
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 20px 20px, cover;
}
/* Per-page glyph (first background = white-stroke SVG, second = gradient). */
[data-page="dashboard"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-7h-6v7H4a1 1 0 0 1-1-1z'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="instance"]     .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='6' y='2.5' width='12' height='19' rx='2'/><line x1='10' y1='18.5' x2='14' y2='18.5'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="users"]        .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M17 20v-1a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v1'/><circle cx='10' cy='8' r='3.5'/><path d='M21 20v-1a4 4 0 0 0-3-3.87'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="templates"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><polyline points='14 2 14 8 20 8'/><line x1='8' y1='13' x2='16' y2='13'/><line x1='8' y1='17' x2='14' y2='17'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="contacts"]     .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='4.5' width='17' height='15' rx='2'/><circle cx='12' cy='11' r='2.5'/><path d='M8 17c.5-2 2.2-3 4-3s3.5 1 4 3'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="inbox"]        .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-6l-4 3v-3H6a2 2 0 0 1-2-2z'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="send"]         .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><line x1='21' y1='3' x2='10' y2='14'/><polygon points='21 3 14.5 21 10 14 3 9.5 21 3'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="campaigns"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M3 11l18-8-3 18-6-7-9-3z'/><path d='M12 14v6'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="auto-replies"] .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 1 1-4.5-7.8'/><polyline points='21 4 21 10 15 10'/><polyline points='9 11 12 14 17 9'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="segments"]     .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><polygon points='3 4 21 4 14 12.5 14 19 10 21 10 12.5 3 4'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="quick-replies"] .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H9l-4 3v-3H6a2 2 0 0 1-2-2z'/><polyline points='9 6.5 11 8.5 15 5'/><line x1='8' y1='12' x2='14' y2='12'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="flows"]        .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='6' r='2.5'/><circle cx='6' cy='18' r='2.5'/><circle cx='18' cy='12' r='2.5'/><path d='M8.5 6H13a2 2 0 0 1 2 2v2.2'/><path d='M8.5 18H13a2 2 0 0 0 2-2v-2.2'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="wa-flows"]     .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='2'/><line x1='8' y1='8' x2='16' y2='8'/><line x1='8' y1='12' x2='16' y2='12'/><rect x='8' y='15.5' width='8' height='3' rx='1.5'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="ai-agents"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='8' width='16' height='11' rx='2'/><path d='M12 8V4'/><circle cx='12' cy='3' r='1'/><line x1='9' y1='13' x2='9' y2='15'/><line x1='15' y1='13' x2='15' y2='15'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="knowledge"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z'/><path d='M4 19a2 2 0 0 1 2-2h13'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="analytics"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20V10'/><path d='M10 20V4'/><path d='M16 20v-7'/><path d='M21 20H3'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="scheduled"]    .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><polyline points='12 7 12 12 15.5 14'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="developers"]   .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 8 5 12 9 16'/><polyline points='15 8 19 12 15 16'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="ai-tools"]     .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18v3h3l6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.5-2.5z'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }
[data-page="ai-copywriter"] .content h1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19l7-7 3 3-7 7-3-3z'/><path d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/><path d='M2 2l7.586 7.586'/><circle cx='11' cy='11' r='2'/></svg>"), linear-gradient(135deg, var(--r-newt), var(--r-mint)); }

/* ---- Empty-state rows: muted cells get a friendlier, centered look ---- */
.table td.muted[colspan] {
  text-align: center;
  padding: 28px 16px;
  color: var(--color-text-faded);
}

/* ---- Flow builder: roomier, more intuitive step sequence ----
   The base draws a tiny "▼" 22px above each card. We give the sequence real
   breathing room and replace the glyph with a continuous vertical connector
   line + a node dot, so the flow reads as a connected pipeline, not a cramped
   stack. All overrides — no markup/JS changes. */
#flow-seq {
  max-width: 680px;
  padding-left: 4px;
}
.flow-step {
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--r-shadow-card);
  border-color: var(--r-line);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.flow-step:hover {
  box-shadow: var(--r-shadow-hover);
  transform: translateY(-1px);
}
/* More vertical room between steps. */
.flow-step + .flow-step,
#flow-seq .flow-step.trigger + .flow-step {
  margin-top: 46px;
}
/* Replace the small "▼" with a connector LINE that spans the gap, capped by a
   soft node dot at the top of each step. */
.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 46px;
  background: linear-gradient(180deg, var(--r-mint), var(--r-newt));
  opacity: 0.55;
}
.flow-step + .flow-step::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--r-newt);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}
/* The trigger card: bolder accent + a soft tinted wash so it clearly reads as
   the entry point. */
.flow-step.trigger {
  border-left-width: 4px;
  border-left-color: var(--r-newt);
  background: linear-gradient(180deg, #f3faf7 0%, #ffffff 60%);
}
/* Number badge → gradient chip. */
.flow-step .flow-step-num {
  background: linear-gradient(135deg, var(--r-newt), var(--r-mint));
  color: #fff;
  min-width: 24px;
  height: 24px;
  box-shadow: 0 1px 3px rgba(19, 102, 234, 0.3);
}
.flow-step.trigger .flow-step-num {
  background: linear-gradient(135deg, var(--r-accent), #c9772e);
  box-shadow: 0 1px 3px rgba(224, 138, 60, 0.35);
}

/* ---- Empty states: friendly centered illustration via ::before ----
   Any table whose only row is a muted full-width cell ("Nothing yet…",
   "No agents yet.", etc.) gets a soft circular icon above the text. Driven
   purely off the existing `td.muted[colspan]` markup — no view edits. */
.table td.muted[colspan]::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background:
    no-repeat center / 26px 26px
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231366ea' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16M4 12h10M4 17h7'/></svg>"),
    var(--color-primary-soft);
}

/* ---- One orchestrated page-load: staggered fade-up on the main blocks ---- */
@keyframes r-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.content > .flex-between,
.content > .flex,
.content > .card {
  animation: r-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.content > .flex-between { animation-delay: 0.02s; }
.content > .flex         { animation-delay: 0.08s; }
.content > .card         { animation-delay: 0.16s; }
/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {
  .content > .flex-between,
  .content > .flex,
  .content > .card { animation: none; }
  .card:hover, .stat-card:hover { transform: none; }
}
