/* ═══════════════════════════════════════════════════════════════════════════
   MBCtrading — Premium Component Library
   Extends styles.css design tokens. Import AFTER styles.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   §0  SPACING SCALE
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-7:   28px;
  --space-8:   32px;
  --space-9:   36px;
  --space-10:  40px;
  --space-11:  44px;
  --space-12:  48px;
  --space-14:  56px;
  --space-16:  64px;
  --space-18:  72px;
  --space-20:  80px;
  --space-22:  88px;
  --space-24:  96px;

  /* Component-level radius tokens */
  --radius-xs:  3px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 100px;

  /* Elevation shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.25);
  --shadow-sm:  0 2px 6px rgba(0,0,0,.30);
  --shadow-md:  0 4px 16px rgba(0,0,0,.40);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.50);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.60);
  --shadow-red: 0 4px 20px rgba(217,18,34,.30);
  --shadow-red-lg: 0 8px 36px rgba(217,18,34,.40);
  --shadow-blue: 0 4px 20px rgba(79,168,255,.25);
  --shadow-gold: 0 4px 20px rgba(245,184,67,.25);
  --shadow-green: 0 4px 20px rgba(38,201,163,.25);

  /* Transition presets */
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-in-out: cubic-bezier(0.45,0,0.55,1);
  --t-fast: 130ms;
  --t-base: 200ms;
  --t-slow: 350ms;
}


/* ─────────────────────────────────────────────────────────────────────────
   §1  BUTTON SYSTEM
   ───────────────────────────────────────────────────────────────────────── */

/* ── Base shared styles ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
  transition:
    background var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    opacity var(--t-base) var(--ease-out);
}

/* Ripple layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-base);
  border-radius: inherit;
  pointer-events: none;
}
.btn:active::after {
  background: rgba(255,255,255,.07);
}

/* ── Primary — red gradient, shadow, hover lift + glow ── */
.btn-primary {
  background: linear-gradient(135deg, #E8182A 0%, #C10F1E 55%, #A30C19 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 -1px 0 rgba(0,0,0,.18) inset,
    var(--shadow-sm);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #F01E2E 0%, #D11220 55%, #B00F1A 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 -1px 0 rgba(0,0,0,.18) inset,
    var(--shadow-red-lg);
  color: #ffffff;
}
.btn-primary:active {
  transform: translateY(0px);
  box-shadow:
    0 0 0 rgba(255,255,255,.12) inset,
    0 1px 2px rgba(0,0,0,.3) inset,
    var(--shadow-red);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ── Secondary — ghost/outline, hover fill animation ── */
.btn-secondary {
  background: transparent;
  color: rgba(252,252,252,.80);
  border-color: rgba(255,255,255,.22);
}
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.0);
  border-radius: inherit;
  transition: background var(--t-base) var(--ease-out);
}
.btn-secondary:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 4px 16px rgba(255,255,255,.06);
}
.btn-secondary:hover::before {
  background: rgba(255,255,255,.07);
}
.btn-secondary:active {
  transform: translateY(0);
  border-color: rgba(255,255,255,.70);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
}
.btn-secondary:active::before {
  background: rgba(255,255,255,.12);
}
.btn-secondary:focus-visible {
  outline: 2px solid rgba(255,255,255,.5);
  outline-offset: 3px;
}

/* ── White — white bg for dark sections ── */
.btn-white {
  background: #ffffff;
  color: #15181E;
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    var(--shadow-sm);
}
.btn-white:hover {
  background: #F4F5F7;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 8px 28px rgba(0,0,0,.35);
  color: #0d0f13;
}
.btn-white:active {
  transform: translateY(0px);
  background: #E9EAEC;
}
.btn-white:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ── Size modifiers ── */
.btn-sm {
  font-size: 13px;
  padding: 9px 18px;
  gap: 6px;
  letter-spacing: 0.01em;
}

.btn-lg {
  font-size: 17px;
  padding: 17px 36px;
  gap: 10px;
  border-radius: var(--radius-md);
}

/* ── Icon-only circular ── */
.btn-icon {
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  gap: 0;
}
.btn-icon.btn-sm {
  width: 34px;
  height: 34px;
}
.btn-icon.btn-lg {
  width: 52px;
  height: 52px;
}
.btn-icon svg,
.btn-icon i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Loading state ── */
.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}
.btn.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  z-index: 1;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: rgba(255,255,255,.95);
  border-radius: 50%;
  animation: btn-spin .65s linear infinite;
  z-index: 2;
  background: none;
  inset: auto;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ── Disabled state ── */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Additional semantic variants ── */
.btn-ghost-red {
  background: rgba(217,18,34,.08);
  color: #FF6071;
  border-color: rgba(217,18,34,.25);
}
.btn-ghost-red:hover {
  background: rgba(217,18,34,.16);
  border-color: rgba(217,18,34,.50);
  color: #FF8090;
  transform: translateY(-2px);
}
.btn-ghost-red:active {
  transform: translateY(0);
  background: rgba(217,18,34,.22);
  border-color: rgba(217,18,34,.60);
}
.btn-ghost-red:focus-visible {
  outline: 2px solid rgba(217,18,34,.70);
  outline-offset: 3px;
}

.btn-gold {
  background: linear-gradient(135deg, #F5C842 0%, #E5A820 100%);
  color: #1a1200;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FFCE45 0%, #EDB228 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,184,67,.40);
  color: #100d00;
}
.btn-gold:active {
  transform: translateY(0);
  box-shadow: var(--shadow-gold);
}
.btn-gold:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Pill variant (apply alongside any .btn-* color) ── */
.btn-pill {
  border-radius: var(--radius-pill);
}


/* ─────────────────────────────────────────────────────────────────────────
   §2  CARD SYSTEM
   ───────────────────────────────────────────────────────────────────────── */

/* ── Base card ── */
.card {
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-7);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    background var(--t-base) var(--ease-out);
}

/* ── Hover lift — base cursor and compositor promotion ── */
.card-hover {
  cursor: pointer;
  will-change: transform;
}

/* ── Featured — accent top border + slight glow ── */
.card-featured {
  border-top: 3px solid var(--red);
  background: linear-gradient(180deg, rgba(217,18,34,.06) 0%, var(--s2) 100%);
  box-shadow: 0 0 0 1px rgba(217,18,34,.15), var(--shadow-sm);
}
.card-featured:hover {
  box-shadow: 0 0 0 1px rgba(217,18,34,.30), var(--shadow-red);
}
.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,18,34,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Glassmorphism ── */
.card-glass {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 4px 24px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.07) inset;
  cursor: pointer;
}

/* ── Dark — slightly elevated surface ── */
.card-dark {
  background: var(--s3);
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/* ── Blue accent variant ── */
.card-blue {
  border-top: 3px solid var(--blue);
  background: linear-gradient(180deg, rgba(79,168,255,.05) 0%, var(--s2) 100%);
}
.card-blue:hover {
  box-shadow: 0 0 0 1px rgba(79,168,255,.20), var(--shadow-blue);
}

/* ── Gold accent variant ── */
.card-gold {
  border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(245,184,67,.05) 0%, var(--s2) 100%);
}
.card-gold:hover {
  box-shadow: 0 0 0 1px rgba(245,184,67,.20), var(--shadow-gold);
}

/* ── Card inner layout helpers ── */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.card-icon-wrap.ci-red  { background: rgba(217,18,34,.07);  border-color: rgba(217,18,34,.12); }
.card-icon-wrap.ci-blue { background: rgba(79,168,255,.07); border-color: rgba(79,168,255,.12); }
.card-icon-wrap.ci-gold { background: rgba(245,184,67,.07); border-color: rgba(245,184,67,.12); }
.card-icon-wrap.ci-up   { background: rgba(38,201,163,.07); border-color: rgba(38,201,163,.12); }

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: var(--space-2);
  letter-spacing: -.02em;
}

.card-body {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.6;
}

.card-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}


/* ─────────────────────────────────────────────────────────────────────────
   §3  BADGE / TAG SYSTEM
   ───────────────────────────────────────────────────────────────────────── */

/* ── Base badge — small pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: opacity var(--t-base);
}

/* ── Filled variants ── */
.badge-red   { background: rgba(217,18,34,.15);  color: #FF6C7A;  border-color: rgba(217,18,34,.22); }
.badge-green { background: rgba(38,201,163,.13); color: #2ED4AE;  border-color: rgba(38,201,163,.20); }
.badge-blue  { background: rgba(79,168,255,.12); color: #74BBFF;  border-color: rgba(79,168,255,.20); }
.badge-gold  { background: rgba(245,184,67,.12); color: #F5C040;  border-color: rgba(245,184,67,.20); }
.badge-muted { background: rgba(255,255,255,.07); color: rgba(232,236,240,.55); border-color: rgba(255,255,255,.10); }

/* ── Outline variants ── */
.badge-outline-red   { background: transparent; color: #FF6C7A;  border-color: rgba(217,18,34,.45); }
.badge-outline-green { background: transparent; color: #2ED4AE;  border-color: rgba(38,201,163,.45); }
.badge-outline-blue  { background: transparent; color: #74BBFF;  border-color: rgba(79,168,255,.45); }
.badge-outline-gold  { background: transparent; color: #F5C040;  border-color: rgba(245,184,67,.45); }
.badge-outline-muted { background: transparent; color: rgba(232,236,240,.50); border-color: rgba(255,255,255,.18); }

/* ── Dot indicator inside badge ── */
.badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Solid "pill" badge for strong emphasis ── */
.badge-solid-red  { background: var(--red); color: #fff; border-color: transparent; }
.badge-solid-green { background: #1AB591; color: #fff; border-color: transparent; }
.badge-solid-blue  { background: #3690E8; color: #fff; border-color: transparent; }
.badge-solid-gold  { background: #D49C1E; color: #fff; border-color: transparent; }

/* ── Tag — even smaller ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
}
.tag-red   { background: rgba(217,18,34,.13); color: #FF707D; border-color: rgba(217,18,34,.18); }
.tag-green { background: rgba(38,201,163,.12); color: #26C9A3; border-color: rgba(38,201,163,.18); }
.tag-blue  { background: rgba(79,168,255,.11); color: #5BAAFF; border-color: rgba(79,168,255,.18); }
.tag-gold  { background: rgba(245,184,67,.11); color: #E8AD38; border-color: rgba(245,184,67,.18); }
.tag-muted { background: rgba(255,255,255,.06); color: rgba(232,236,240,.50); border-color: rgba(255,255,255,.08); }


/* ─────────────────────────────────────────────────────────────────────────
   §4  SECTION HEADER PATTERN
   ───────────────────────────────────────────────────────────────────────── */

/* ── Container ── */
.sh {
  margin-bottom: var(--space-12);
}
.sh.sh-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sh.sh-left {
  text-align: left;
  align-items: flex-start;
}

/* ── Eyebrow ── */
.sh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-3);
  line-height: 1;
}
.sh-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}
.sh.sh-center .sh-eyebrow::before { display: none; }
.sh-eyebrow.ey-blue { color: var(--blue); }
.sh-eyebrow.ey-gold { color: var(--gold); }
.sh-eyebrow.ey-green { color: var(--up); }
.sh-eyebrow.ey-muted { color: var(--t2); }

/* ── Title ── */
.sh-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-4);
  max-width: 700px;
  text-wrap: balance;
}
.sh-title em {
  font-style: normal;
  color: var(--red);
}
.sh-title .hl-blue { color: var(--blue); }
.sh-title .hl-gold { color: var(--gold); }
.sh-title .hl-green { color: var(--up); }

/* ── Subtitle/lead ── */
.sh-lead {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--t2);
  max-width: 560px;
  margin-bottom: var(--space-8);
}

/* ── CTA row below lead ── */
.sh-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.sh.sh-center .sh-cta {
  justify-content: center;
}

/* ── Responsive scale ── */
@media (max-width: 768px) {
  .sh-title { font-size: 30px; }
  .sh-lead  { font-size: 15px; }
}
@media (max-width: 480px) {
  .sh-title { font-size: 26px; }
  .sh { margin-bottom: var(--space-8); }
}


/* ─────────────────────────────────────────────────────────────────────────
   §5  STAT / NUMBER DISPLAY
   ───────────────────────────────────────────────────────────────────────── */

/* ── Container ── */
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.stat-block.sb-center { align-items: center; text-align: center; }
.stat-block.sb-right  { align-items: flex-end; text-align: right; }

/* ── Large number ── */
.stat-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}
.stat-num .stat-unit {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
  color: var(--t2);
  margin-right: 2px;
}
.stat-num .stat-suffix {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
  color: var(--t2);
  margin-left: 2px;
}

/* ── Size variants ── */
.stat-num-sm  { font-size: 28px; font-weight: 700; }
.stat-num-lg  { font-size: 64px; font-weight: 800; }
.stat-num-xl  { font-size: 80px; font-weight: 900; letter-spacing: -0.05em; }

/* ── Label ── */
.stat-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--t3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Delta / change indicator ── */
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.stat-delta.up {
  color: var(--up);
  background: rgba(38,201,163,.12);
}
.stat-delta.up::before { content: '▲'; font-size: 8px; }
.stat-delta.dn {
  color: var(--dn);
  background: rgba(239,83,80,.12);
}
.stat-delta.dn::before { content: '▼'; font-size: 8px; }
.stat-delta.neutral {
  color: var(--t2);
  background: rgba(255,255,255,.06);
}
.stat-delta.neutral::before { content: '—'; }

/* ── Supplementary description ── */
.stat-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  margin-top: var(--space-1);
}


/* ─────────────────────────────────────────────────────────────────────────
   §6  DIVIDERS & SEPARATORS
   ───────────────────────────────────────────────────────────────────────── */

/* ── Plain 1px rule ── */
.divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: var(--space-8) 0;
}

/* ── Gradient fade ── */
.divider-gradient {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.18) 25%,
    rgba(255,255,255,.18) 75%,
    transparent 100%
  );
  margin: var(--space-8) 0;
}

/* ── Glow — red accent ── */
.divider-glow {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217,18,34,.60) 30%,
    rgba(217,18,34,.60) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(217,18,34,.35);
  margin: var(--space-8) 0;
}

/* ── Vertical divider ── */
.divider-v {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: rgba(255,255,255,.12);
  margin: 0 var(--space-3);
  vertical-align: middle;
}

/* ── Section divider with label ── */
.divider-labeled {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.divider-labeled::before,
.divider-labeled::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.divider-labeled span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
  white-space: nowrap;
}

/* ── Spacer blocks ── */
.spacer-sm  { height: var(--space-6);  display: block; }
.spacer-md  { height: var(--space-12); display: block; }
.spacer-lg  { height: var(--space-20); display: block; }


/* ─────────────────────────────────────────────────────────────────────────
   §7  LISTS
   ───────────────────────────────────────────────────────────────────────── */

/* ── Check list — green SVG checkmark ── */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  font-weight: 400;
  color: var(--t2);
  line-height: 1.55;
  padding: 0;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='rgba(38%2C201%2C163%2C.14)' stroke='rgba(38%2C201%2C163%2C.35)' stroke-width='1.5'/%3E%3Cpath d='M5.5 10.2l3.2 3.2 5.8-6.8' stroke='%2326C9A3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}
.check-list li strong {
  font-weight: 700;
  color: var(--text);
}
/* Red check variant */
.check-list.cl-red li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9.25' fill='rgba(217%2C18%2C34%2C.12)' stroke='rgba(217%2C18%2C34%2C.30)' stroke-width='1.5'/%3E%3Cpath d='M5.5 10.2l3.2 3.2 5.8-6.8' stroke='%23FF6C7A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Feature list — icon box + text ── */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.feature-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature-list .fl-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(217,18,34,.06);
  border: 1px solid rgba(217,18,34,.10);
  color: var(--red);
  font-size: 17px;
  transition: background var(--t-base), box-shadow var(--t-base);
}
.feature-list li:hover .fl-icon {
  background: rgba(217,18,34,.12);
  box-shadow: 0 4px 14px rgba(217,18,34,.12);
}
.fl-icon.fl-blue  { background: rgba(79,168,255,.06);  border-color: rgba(79,168,255,.10);  color: var(--blue); }
.fl-icon.fl-gold  { background: rgba(245,184,67,.06);  border-color: rgba(245,184,67,.10);  color: var(--gold); }
.fl-icon.fl-green { background: rgba(38,201,163,.06);  border-color: rgba(38,201,163,.10);  color: var(--up); }
.fl-icon.fl-muted { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); color: var(--t2); }

.feature-list .fl-text { min-width: 0; }
.feature-list .fl-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 4px;
}
.feature-list .fl-body {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
}

/* ── Inline icon list (horizontal pills row) ── */
.icon-pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.icon-pill-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 8px;
}
.icon-pill-list li span.ipl-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--red);
}


/* ─────────────────────────────────────────────────────────────────────────
   §8  UTILITY / HELPER CLASSES
   ───────────────────────────────────────────────────────────────────────── */

/* Text colors */
.text-red    { color: var(--red)  !important; }
.text-blue   { color: var(--blue) !important; }
.text-gold   { color: var(--gold) !important; }
.text-green  { color: var(--up)   !important; }
.text-muted  { color: var(--t2)   !important; }
.text-muted3 { color: var(--t3)   !important; }
.text-light  { color: var(--text) !important; }
.text-white  { color: #fff        !important; }

/* Background fills */
.bg-surface  { background: var(--surface); }
.bg-s2       { background: var(--s2); }
.bg-s3       { background: var(--s3); }

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-5  { gap: var(--space-5); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Typography */
.font-data { font-family: var(--font-data); }
.tabular   { font-variant-numeric: tabular-nums; }
.tracking-wide { letter-spacing: 0.08em; }
.tracking-tight { letter-spacing: -0.025em; }
.uppercase { text-transform: uppercase; }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Visual */
.border-top-red  { border-top: 2px solid var(--red);  }
.border-top-blue { border-top: 2px solid var(--blue); }
.border-top-gold { border-top: 2px solid var(--gold); }

.glow-red  { box-shadow: 0 0 20px rgba(217,18,34,.22); }
.glow-blue { box-shadow: 0 0 20px rgba(79,168,255,.22); }
.glow-gold { box-shadow: 0 0 20px rgba(245,184,67,.22); }

/* Gradient text utility */
.text-gradient-red {
  background: linear-gradient(135deg, #FF4B5C 0%, #E8182A 60%, #C10F1E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #FFD668 0%, #F5B843 60%, #D49520 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Additional layout utilities */
.flex-wrap     { flex-wrap: wrap; }
.flex-nowrap   { flex-wrap: nowrap; }
.w-full        { width: 100%; }
.min-w-0       { min-width: 0; }
.flex-1        { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.relative      { position: relative; }
.pointer       { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Glow hover helpers */
.glow-red-hover:hover  { box-shadow: var(--shadow-red); }
.glow-blue-hover:hover { box-shadow: var(--shadow-blue); }
.glow-gold-hover:hover { box-shadow: var(--shadow-gold); }
.glow-green-hover:hover { box-shadow: var(--shadow-green); }

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Smooth hover on interactive */
a, button { -webkit-tap-highlight-color: transparent; }


/* ─────────────────────────────────────────────────────────────────────────
   §9  HOVER GUARD — pointer device only
   Prevents sticky hover states on touch devices (iPad, iPhone, Android)
   ───────────────────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,.18);
    background: var(--s3);
  }
  .card-glass:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    box-shadow:
      0 8px 40px rgba(0,0,0,.45),
      0 1px 0 rgba(255,255,255,.10) inset;
  }
  .card-dark:hover {
    background: var(--s4, #1F2535);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 4px 16px rgba(0,0,0,.45);
  }
  .btn-primary:hover,
  .btn-white:hover,
  .btn-gold:hover,
  .btn-ghost-red:hover {
    transform: translateY(-2px);
  }
  .btn-secondary:hover {
    transform: translateY(-1px);
  }
  .icon-pill-list li {
    transition:
      background var(--t-base) var(--ease-out),
      border-color var(--t-base) var(--ease-out);
  }
  .icon-pill-list li:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.14);
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   §10  RESPONSIVE — stat numbers
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stat-num    { font-size: 36px; }
  .stat-num-lg { font-size: 48px; }
  .stat-num-xl { font-size: 60px; }
}
@media (max-width: 480px) {
  .stat-num    { font-size: 28px; }
  .stat-num-lg { font-size: 38px; }
  .stat-num-xl { font-size: 48px; }
}


/* ─────────────────────────────────────────────────────────────────────────
   §11  RESPONSIVE — mobile component overrides (600px)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .btn        { min-height: 44px; }
  .btn-sm     { padding: 11px 16px; min-height: 40px; }
  .btn-icon   { width: 44px; height: 44px; }
  .btn-icon.btn-sm { width: 40px; height: 40px; }
  .card       { padding: var(--space-5) var(--space-4); }
  .sh-cta     { flex-direction: column; align-items: stretch; }
  .sh-cta .btn { width: 100%; justify-content: center; }
}


/* ─────────────────────────────────────────────────────────────────────────
   §12  SKELETON LOADING
   ───────────────────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text  { height: 1em;    margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em;  width: 60%; margin-bottom: 0.75em; }
.skeleton-block { height: 120px;  width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: rgba(255,255,255,.06); }
}
