/* ============================================================
   PRODUCT HUB — Design System
   Minimal but impactful · blue on near-white · Inter
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand blue */
  --blue: #2563EB;
  --blue-dark: #1E40AF;
  --blue-pastel: #DBEAFE;
  --blue-tint: #F0F7FF;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;

  /* Surfaces (light) */
  --bg: #F6F8FB;
  --bg-grad-1: #FFFFFF;
  --bg-grad-2: #F0F7FF;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-hover: #F1F5F9;

  /* Text */
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  /* Lines */
  --border: #E7EDF4;
  --border-strong: #DBE3EC;

  /* Status */
  --green: #16A34A;  --green-soft: #DCFCE7;  --green-ink: #166534;
  --amber: #D97706;  --amber-soft: #FEF3C7;  --amber-ink: #92400E;
  --red:   #DC2626;  --red-soft:   #FEE2E2;  --red-ink:   #991B1B;
  --gold:  #E8A317;  --gold-glow:  rgba(232,163,23,0.55);

  /* Phase colors */
  --phase-1: #EF4444; /* 0-80    rojo */
  --phase-2: #F97316; /* 80-250  naranja */
  --phase-3: #EAB308; /* 250-1500 amarillo */
  --phase-4: #22C55E; /* 1500-2000 verde */
  --phase-5: #3B82F6; /* 2000-5000 azul */
  --phase-6: #8B5CF6; /* +5000   pilares (violeta) */

  /* Radii */
  --r-btn: 8px;
  --r-input: 10px;
  --r-card: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows (escalonadas) */
  --sh-1: 0 1px 2px rgba(15,23,42,0.04);
  --sh-2: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(37,99,235,0.06);
  --sh-3: 0 2px 4px rgba(15,23,42,0.05), 0 10px 28px rgba(37,99,235,0.10);
  --sh-4: 0 8px 18px rgba(15,23,42,0.08), 0 24px 50px rgba(37,99,235,0.14);
  --sh-blue: 0 10px 30px rgba(37,99,235,0.22);

  --ring: 0 0 0 4px rgba(37,99,235,0.16);

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg: #0A0F1C;
  --bg-grad-1: #0E1424;
  --bg-grad-2: #0A1020;
  --surface: #121A2B;
  --surface-2: #0E1726;
  --surface-hover: #1A2540;

  --ink: #F1F5F9;
  --ink-2: #CBD5E1;
  --muted: #94A3B8;
  --faint: #64748B;

  --border: #20293D;
  --border-strong: #2A3650;

  --blue-pastel: #1E3A8A;
  --blue-tint: #122046;

  --green-soft: #11301F; --green-ink: #4ADE80;
  --amber-soft: #2E2410; --amber-ink: #FCD34D;
  --red-soft:   #34161A; --red-ink:   #FCA5A5;

  --sh-1: 0 1px 2px rgba(0,0,0,0.5);
  --sh-2: 0 1px 2px rgba(0,0,0,0.4), 0 4px 14px rgba(0,0,0,0.45);
  --sh-3: 0 2px 6px rgba(0,0,0,0.5), 0 14px 34px rgba(0,0,0,0.55);
  --sh-4: 0 10px 24px rgba(0,0,0,0.55), 0 30px 60px rgba(0,0,0,0.6);
  --sh-blue: 0 10px 34px rgba(37,99,235,0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 700px at 85% -10%, var(--bg-grad-2), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, var(--bg-grad-1), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  transition: background-color .4s var(--ease), color .3s var(--ease);
}
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }
svg.lucide { width: 1em; height: 1em; stroke-width: 2; }
::selection { background: var(--blue-pastel); color: var(--blue-dark); }

/* ---------- Layout shell ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 96px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: var(--sh-blue);
  font-size: 18px;
}
.brand b { font-size: 16px; }
.topbar .spacer { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .lucide { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; box-shadow: var(--sh-blue);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(37,99,235,0.34); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border: 1px solid var(--border-strong); box-shadow: var(--sh-1); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--blue); color: var(--blue); }
.btn-soft { background: var(--blue-pastel); color: var(--blue-dark); }
.btn-soft:hover { background: color-mix(in srgb, var(--blue-pastel) 80%, var(--blue)); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 10px; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); box-shadow: var(--sh-1);
}
.btn-icon:hover { color: var(--blue); border-color: var(--blue); }
.btn-icon .lucide { width: 18px; height: 18px; }

/* ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,0.5); animation: ripple .6s var(--ease); }
.btn-ghost .ripple, .btn-soft .ripple, .btn-icon .ripple { background: rgba(37,99,235,0.25); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- Headings ---------- */
.page-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 30px 0 28px; }
.h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); margin-top: 8px; letter-spacing: -.01em; }
.eyebrow { text-transform: uppercase; font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--blue); }
.label { text-transform: uppercase; font-weight: 500; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--sh-2);
}

/* ---------- Global stat cards ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  position: relative; overflow: hidden;
  padding: 22px 24px; border-radius: var(--r-card);
  background: linear-gradient(160deg, var(--surface) 0%, var(--blue-tint) 140%);
  border: 1px solid var(--border); box-shadow: var(--sh-2);
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%); pointer-events: none;
}
.stat .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-pastel); color: var(--blue-dark); margin-bottom: 14px;
}
.stat .ic .lucide { width: 21px; height: 21px; }
.stat .val { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat .cap { color: var(--muted); font-size: 13.5px; margin-top: 8px; font-weight: 500; }

/* ---------- Product grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.pcard {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--sh-2);
  padding: 22px 22px 20px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.pcard::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent, var(--blue));
}
.pcard:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--sh-4); border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.pcard-top { display: flex; align-items: flex-start; gap: 14px; }
.pemoji {
  width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-size: 30px; background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
[data-theme="dark"] .pemoji { box-shadow: none; }
.pcard h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.pcard .pmeta { color: var(--faint); font-size: 12.5px; margin-top: 2px; }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; position: relative; }
.badge .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: inherit; opacity: .5; animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.7); opacity: .6; } 80%,100% { transform: scale(2.2); opacity: 0; } }
.badge.s-testeando { background: var(--green-soft); color: var(--green-ink); }
.badge.s-testeando .dot { background: var(--green); }
.badge.s-escalando { background: var(--blue-pastel); color: var(--blue-dark); }
.badge.s-escalando .dot { background: var(--blue); }
.badge.s-pausado { background: var(--amber-soft); color: var(--amber-ink); }
.badge.s-pausado .dot { background: var(--amber); }
.badge.s-pausado .dot::after { animation: none; }
.badge.s-descartado { background: var(--red-soft); color: var(--red-ink); }
.badge.s-descartado .dot { background: var(--red); }
.badge.s-descartado .dot::after { animation: none; }

/* progress (14 días) */
.prog { margin-top: 18px; }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.prog-head .label { color: var(--faint); }
.prog-head .days { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.prog-track { height: 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.prog-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transition: width 1s var(--ease);
}

.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; }
.pcard .rev { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pcard .orders { color: var(--muted); font-size: 13px; margin-top: 6px; font-weight: 500; }
.pcard .go { color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.pcard:hover .go { transform: translateX(3px); color: var(--blue); }
.pcard .go .lucide { width: 22px; height: 22px; }

/* ---------- Dashboard ---------- */
.back-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.dash-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dash-emoji {
  width: 72px; height: 72px; flex: none; border-radius: 18px; display: grid; place-items: center;
  font-size: 38px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-2);
}
.dash-title h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.dash-title .row { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.badge.clickable { cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s; }
.badge.clickable:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }

/* giant 14-day progress */
.mega-prog { margin: 26px 0 8px; }
.mega-track {
  position: relative; height: 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: inset 0 1px 3px rgba(15,23,42,0.06);
}
.mega-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  transition: width 1.2s var(--ease);
}
.mega-dot {
  position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; border: 4px solid var(--blue);
  box-shadow: 0 0 0 6px rgba(37,99,235,0.18), 0 6px 16px rgba(37,99,235,0.4);
  left: 0; transition: left 1.2s var(--ease);
}
.mega-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue);
  animation: ping 2s var(--ease) infinite; }
.mega-scale { display: flex; justify-content: space-between; margin-top: 9px; }
.mega-scale span { font-size: 11.5px; color: var(--faint); font-weight: 500; }

/* tabs */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; margin: 30px 0 0; }
.tab {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all .2s var(--ease);
}
.tab .lucide { width: 18px; height: 18px; }
.tab.active { background: var(--surface); color: var(--blue-dark); box-shadow: var(--sh-2); }
.tab:not(.active):hover { color: var(--ink-2); }

.tab-panel { animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* KPI row */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.kpi {
  position: relative; overflow: hidden; padding: 22px; border-radius: var(--r-card);
  background: linear-gradient(160deg, var(--surface) 0%, var(--blue-tint) 160%);
  border: 1px solid var(--border); box-shadow: var(--sh-2);
}
.kpi .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-pastel); color: var(--blue-dark); margin-bottom: 16px; }
.kpi .ic .lucide { width: 20px; height: 20px; }
.kpi .val { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.kpi .cap { color: var(--muted); font-size: 13px; margin-top: 9px; font-weight: 500; }
.kpi .be-bar { height: 5px; border-radius: 999px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.kpi .be-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), #4ADE80); width: 0; transition: width 1s var(--ease) .3s; }
.kpi .be-fill.over { background: linear-gradient(90deg, var(--amber), #FBBF24); }
.editable-be { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--blue); }
.editable-be .lucide { width: 13px; height: 13px; }

/* section blocks */
.block { margin-top: 24px; }
.block-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; margin-top: 24px; }
.panel { padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-2); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.panel-head .label { color: var(--faint); }
.chart-wrap { position: relative; height: 320px; }

/* daily input card */
.input-card { padding: 22px; border-radius: var(--r-card);
  background: linear-gradient(165deg, var(--blue-tint), var(--surface) 120%);
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--border)); box-shadow: var(--sh-3); }
.input-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.input-card h3 .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.input-card h3 .ic .lucide { width: 17px; height: 17px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: -.01em; }
.input {
  width: 100%; padding: 11px 13px; border-radius: var(--r-input); background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus { border-color: var(--blue); box-shadow: var(--ring); }
.input::placeholder { color: var(--faint); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Conversor USD ⇄ EUR (Ingresos del día) ---------- */
.ingresos-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.ingresos-head label { margin-bottom: 0; }

.cur-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--border));
  border-radius: 999px; padding: 2px;
}
.cur-btn {
  border: 0; background: transparent; cursor: pointer;
  font: 700 12px/1 'Inter', system-ui, sans-serif;
  color: var(--muted);
  padding: 5px 10px; min-width: 28px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.cur-btn:hover { color: var(--ink); }
.cur-btn.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px color-mix(in srgb, var(--blue) 14%, transparent);
}
.cur-btn:active { transform: scale(0.95); }

.cur-hint {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
  animation: curHintIn .25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cur-hint[hidden] { display: none; }
.cur-hint .conv-row {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
}
.cur-hint .conv-row .lucide {
  width: 14px; height: 14px; color: var(--blue);
}
.cur-hint .conv {
  font-weight: 700; font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cur-hint .cur-tag {
  font-size: 11px; font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.01em;
}
@keyframes curHintIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* history table */
.htable { width: 100%; border-collapse: collapse; }
.htable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  font-weight: 600; padding: 0 12px 12px; border-bottom: 1px solid var(--border); }
.htable th.num, .htable td.num { text-align: right; }
.htable td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.htable tbody tr { transition: background-color .15s; }
.htable tbody tr:hover { background: var(--surface-hover); }
.htable tbody tr:last-child td { border-bottom: none; }
.htable .money { font-weight: 700; letter-spacing: -.01em; }
.row-del { color: var(--faint); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; transition: all .15s; }
.row-del:hover { background: var(--red-soft); color: var(--red); }
.row-del .lucide { width: 16px; height: 16px; }

/* ---------- Redes ---------- */
.accounts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
.acct {
  padding: 22px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--sh-2); transition: transform .2s var(--ease), box-shadow .2s;
}
.acct:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.acct-top { display: flex; align-items: center; gap: 13px; }
.plat {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #fff;
}
.plat .lucide { width: 22px; height: 22px; }
.plat.tiktok { background: linear-gradient(135deg, #25F4EE 0%, #000 45%, #FE2C55 100%); }
.plat.ig { background: linear-gradient(135deg, #F9CE34, #EE2A7B 45%, #6228D7); }
.plat.fb { background: #1877F2; }
.plat.yt { background: #FF0000; }
.acct h4 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.acct .handle { color: var(--blue); font-size: 13.5px; font-weight: 600; }
.acct .since { color: var(--faint); font-size: 12px; margin-top: 1px; }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.acct-stats .s .n { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.acct-stats .s .l { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease);
}
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.66); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(880px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-4); animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 28px 18px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.modal-head .sub { font-size: 14px; margin-top: 4px; }
.modal-body { padding: 26px 28px 30px; }

/* mode switch in modal */
.mode-tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.mode-tab { padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: all .2s; }
.mode-tab.active { background: var(--surface); color: var(--blue-dark); box-shadow: var(--sh-1); }
.mode-tab.locked { opacity: .5; }

/* ---------- Termómetro ---------- */
.thermo-layout { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: stretch; margin-top: 8px; }
.thermo { position: relative; width: 100%; display: flex; justify-content: center; padding: 20px 0; }
.thermo-bar {
  position: relative; width: 30px; border-radius: 999px; min-height: 420px;
  background: linear-gradient(to top,
    var(--phase-1) 0%, var(--phase-1) 20%,
    var(--phase-2) 20%, var(--phase-2) 40%,
    var(--phase-3) 40%, var(--phase-3) 60%,
    var(--phase-4) 60%, var(--phase-4) 80%,
    var(--phase-5) 80%, var(--phase-5) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), var(--sh-2);
  opacity: .35; transition: opacity .3s;
}
.thermo-bar.lit { opacity: 1; }
.thermo-marks { position: absolute; inset: 20px 0; pointer-events: none; }
.thermo-mark { position: absolute; left: 50%; transform: translateX(40px); display: flex; align-items: center; gap: 8px; }
.thermo-mark::before { content: ""; position: absolute; left: -52px; width: 14px; height: 2px; background: var(--border-strong); }
.thermo-mark .v { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.thermo-dot {
  position: absolute; left: 50%; transform: translate(-50%, 50%); bottom: 0;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  border: 4px solid var(--phase-5); transition: bottom 1.1s var(--ease), border-color .4s;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.2), 0 0 24px 4px rgba(59,130,246,0.6);
  z-index: 3; display: grid; place-items: center; font-weight: 800; font-size: 10px; color: var(--ink);
}
.thermo-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .6;
  animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

.phase-info { align-self: center; }
.phase-tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; }
.phase-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin: 18px 0 16px; box-shadow: var(--sh-3); }
.phase-icon .lucide { width: 30px; height: 30px; }
.phase-info h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.phase-info .range { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 2px; }
.phase-info p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-top: 14px; max-width: 46ch; }
.phase-info .quote { border-left: 3px solid var(--accent, var(--blue)); padding: 4px 0 4px 16px; margin-top: 16px;
  color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.seg-list { margin-top: 14px; display: grid; gap: 7px; }
.seg-list .li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.seg-list .li b { color: var(--ink); min-width: 92px; }

.visits-input { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.visits-input .input { max-width: 200px; font-size: 18px; font-weight: 700; }

/* regla de 3 */
.rule3 {
  margin-top: 22px; padding: 20px; border-radius: 14px;
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
}
.rule3-head { display: flex; align-items: center; gap: 11px; }
.rule3-head .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--amber); color: #fff; flex: none; }
.rule3-head h4 { font-size: 15.5px; font-weight: 700; color: var(--amber-ink); }
.rule3 p { font-size: 13.5px; color: var(--amber-ink); opacity: .9; margin-top: 3px; }
.rule3-dots { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.r-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--amber) 55%, transparent);
  display: grid; place-items: center; color: var(--amber); transition: all .25s var(--ease); cursor: pointer; }
.r-dot.filled { background: var(--amber); border-style: solid; color: #fff; transform: scale(1.08); }
.r-dot .lucide { width: 15px; height: 15px; }
.rule3-msg { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--red); display: none; align-items: center; gap: 8px; }
.rule3-msg.show { display: inline-flex; animation: pop .3s var(--ease); }
.rule3-reset { margin-left: 10px; font-size: 12px; color: var(--amber-ink); text-decoration: underline; opacity: .8; }

/* ---------- Constelación de pilares ---------- */
.const-wrap { display: grid; grid-template-columns: 1fr; gap: 8px; }
.constellation { position: relative; width: 100%; aspect-ratio: 1.55 / 1; max-width: 560px; margin: 6px auto 0; }
.const-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.const-line { stroke: var(--border-strong); stroke-width: 1.5; transition: stroke .4s, opacity .4s; }
.pillar {
  position: absolute; transform: translate(-50%, -50%);
  width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.pillar-orb {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted);
  transition: box-shadow .5s var(--ease), border-color .5s, color .4s, transform .3s var(--ease);
}
.pillar-orb .lucide { width: 26px; height: 26px; }
.pillar-orb .ring { position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--gold); opacity: 0;
  box-shadow: 0 0 18px var(--gold-glow); transition: opacity .5s; }
.pillar.winner .pillar-orb { border-color: var(--gold); color: var(--gold); transform: scale(1.06); }
.pillar.winner .pillar-orb .ring { opacity: 1; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pillar-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pillar-views { font-size: 11px; color: var(--faint); font-weight: 600; }
.pillar.dim { opacity: .55; }
.pillar.dim .pillar-name { text-decoration: line-through; color: var(--faint); }

/* matriz */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; font-size: 13px; }
.matrix th, .matrix td { padding: 11px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.matrix th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.matrix th.vh, .matrix td.vh { text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
.matrix .chg { color: var(--blue); font-weight: 700; }
.matrix .same { color: var(--faint); }
.matrix td.viewcell { width: 110px; }
.matrix .vinput { width: 92px; padding: 7px 9px; border-radius: 8px; text-align: right; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); outline: none; font-weight: 700; transition: border-color .15s, box-shadow .15s; }
.matrix .vinput:focus { border-color: var(--blue); box-shadow: var(--ring); }
.matrix tr.is-winner td { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.matrix tr.is-loser td.vh { color: var(--faint); }

.verdict { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verdict-card { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.verdict-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.verdict-card.good { background: color-mix(in srgb, var(--gold) 8%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.verdict-card.good .ic { background: var(--gold); color: #fff; }
.verdict-card.bad { background: var(--surface-2); }
.verdict-card.bad .ic { background: var(--faint); color: #fff; }
.verdict-card .t { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.verdict-card .n { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px 13px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-4);
  font-weight: 600; font-size: 14px; animation: toastIn .4s var(--ease); max-width: 340px;
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast .check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.toast .check .lucide { width: 17px; height: 17px; animation: checkPop .4s var(--ease) .1s both; }
@keyframes checkPop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1); } }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-hover) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 70px 20px; }
.empty svg { margin: 0 auto 22px; display: block; }
.empty h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin-top: 8px; max-width: 38ch; margin-inline: auto; }
.empty .btn { margin-top: 22px; }

/* ---------- Entrance stagger ---------- */
.enter { opacity: 0; transform: translateY(14px); animation: enterUp .5s var(--ease) forwards; }
@keyframes enterUp { to { opacity: 1; transform: none; } }

/* ---------- Intro / explicación de la herramienta (landing) ---------- */
.intro {
  margin: 40px 0 0; padding: 26px 30px 30px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--surface) 0%, var(--blue-tint) 230%);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.intro::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%); pointer-events: none;
}
.intro-lead {
  font-size: clamp(15.5px, 1.7vw, 19px); line-height: 1.6; color: var(--ink-2);
  max-width: 78ch; letter-spacing: -.01em; font-weight: 500; position: relative;
}
.intro-lead b { color: var(--ink); font-weight: 700; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 26px; position: relative; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 2px;
  background: var(--border-strong); z-index: 0;
}
.fic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-pastel); color: var(--blue-dark); margin-bottom: 15px;
  position: relative; z-index: 1; box-shadow: 0 0 0 7px var(--surface);
}
.fic .lucide { width: 26px; height: 26px; }
.fstep-n { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; }
.ft { font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; margin-top: 4px; }
.fd { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.45; max-width: 22ch; }
@media (max-width: 1024px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 26px 4px; }
  .flow-step::after { display: none; }
}
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Account detail · vídeos ---------- */
.acct-go { color: var(--faint); align-self: flex-start; transition: transform .18s var(--ease), color .18s; }
.acct-go .lucide { width: 20px; height: 20px; }
.acct:hover .acct-go { transform: translateX(3px); color: var(--blue); }
.acct { cursor: pointer; }
.acct-actions { display: flex; gap: 10px; }
.acct-actions .btn { flex: 1; justify-content: center; }

.acct-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.acct-summary .s { padding: 15px 16px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); }
.acct-summary .n { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.acct-summary .l { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 500; }

.addvid { padding: 18px 20px; border-radius: 14px; background: linear-gradient(165deg, var(--blue-tint), var(--surface) 130%);
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--border)); box-shadow: var(--sh-2); }
.addvid .btn { width: 100%; justify-content: center; margin-top: 14px; }
.field-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }

.vid-list { display: flex; flex-direction: column; gap: 8px; }
.vid-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); transition: border-color .15s; }
.vid-row:hover { border-color: var(--border-strong); }
.vid-info { flex: 1; min-width: 0; }
.vid-label { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.vid-date { font-size: 12px; color: var(--faint); margin-top: 1px; }
.vid-views { display: flex; align-items: center; gap: 7px; }
.vinput-edit { width: 104px; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); text-align: right; font-weight: 700; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.vinput-edit:focus { border-color: var(--blue); box-shadow: var(--ring); }
.vid-views-l { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.vid-diag, .vid-del { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); transition: all .15s; }
.vid-diag:hover { color: var(--blue); border-color: var(--blue); }
.vid-del:hover { color: var(--red); border-color: transparent; background: var(--red-soft); }
.vid-diag .lucide, .vid-del .lucide { width: 16px; height: 16px; }

/* platform picker */
.plat-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plat-opt { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 15px 8px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 12.5px; font-weight: 600;
  color: var(--muted); transition: border-color .15s, background-color .15s, box-shadow .15s, color .15s; }
.plat-opt:hover { border-color: var(--blue); }
.plat-opt.sel { border-color: var(--blue); background: var(--blue-tint); color: var(--ink); box-shadow: var(--ring); }
.plat-opt .plat { width: 42px; height: 42px; }
.plat-opt .plat .lucide { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .field-3 { grid-template-columns: 1fr; }
  .acct-actions { flex-direction: column; }
  .plat-pick { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Credit footer ---------- */
.credit {
  text-align: center; color: var(--faint); font-size: 13px; font-weight: 500;
  margin-top: 34px; padding: 30px 0 6px; border-top: 1px solid var(--border);
}
.credit b { color: var(--ink-2); font-weight: 700; }

/* ---------- New: forms, confirm, resumen, delete, extended ---------- */
.modal-sm { width: min(560px, 100%); }

/* emoji picker */
.emoji-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.emoji-chip {
  aspect-ratio: 1; border-radius: 11px; font-size: 22px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer;
  transition: transform .15s var(--ease), border-color .15s, background-color .15s, box-shadow .15s;
}
.emoji-chip:hover { border-color: var(--blue); transform: translateY(-2px); }
.emoji-chip.sel { background: var(--blue-pastel); border-color: var(--blue); box-shadow: var(--ring); }

/* segmented status control */
.seg-control { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.seg-control button { padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px; transition: background-color .18s, color .18s, box-shadow .18s; }
.seg-control button .dot { width: 7px; height: 7px; border-radius: 50%; }
.seg-control button.sel { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* danger buttons */
.btn-danger { background: var(--surface); color: var(--red); border: 1px solid var(--border-strong); box-shadow: var(--sh-1); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-danger-solid { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(220,38,38,0.28); }
.btn-danger-solid:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* card delete (foot) */
.foot-actions { display: flex; align-items: center; gap: 8px; }
.card-del {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--faint);
  opacity: 0; transform: translateX(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), background-color .15s, color .15s;
}
.pcard:hover .card-del { opacity: 1; transform: none; }
.card-del:hover { background: var(--red-soft); color: var(--red); border-color: transparent; }
.card-del .lucide { width: 16px; height: 16px; }

/* dashboard back row → space between */
.back-row { justify-content: space-between; }

/* test complete actions */
.test-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.ext-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--blue-pastel); color: var(--blue-dark); font-weight: 600; font-size: 13.5px; }
.ext-badge .lucide { width: 16px; height: 16px; }
.mega-fill.extended { background: linear-gradient(90deg, var(--blue-dark), #7C3AED); }
.mega-note { font-size: 11.5px; color: var(--faint); font-weight: 500; margin-top: 9px; }

/* confirm modal */
.confirm-body { text-align: center; padding: 34px 30px 30px; }
.confirm-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--red-soft); color: var(--red); }
.confirm-ic .lucide { width: 28px; height: 28px; }
.confirm-body h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.confirm-body p { color: var(--muted); margin-top: 9px; max-width: 40ch; margin-inline: auto; line-height: 1.55; }
.confirm-actions { display: flex; gap: 10px; margin-top: 26px; }
.confirm-actions .btn { flex: 1; justify-content: center; }

/* resumen del test */
.resumen-verdict { display: flex; align-items: center; gap: 15px; padding: 18px 20px; border-radius: 16px; margin-bottom: 20px; }
.resumen-verdict .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.resumen-verdict .ic .lucide { width: 24px; height: 24px; }
.resumen-verdict .t { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.resumen-verdict .n { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.resumen-verdict.win { background: var(--green-soft); color: var(--green-ink); }
.resumen-verdict.win .ic { background: var(--green); color: #fff; }
.resumen-verdict.lose { background: var(--red-soft); color: var(--red-ink); }
.resumen-verdict.lose .ic { background: var(--red); color: #fff; }
.resumen-section { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 22px 0 12px; }
.resumen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resumen-stat { padding: 18px; border-radius: 14px; background: linear-gradient(160deg, var(--surface), var(--blue-tint) 170%); border: 1px solid var(--border); }
.resumen-stat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-pastel); color: var(--blue-dark); margin-bottom: 12px; }
.resumen-stat .ic .lucide { width: 17px; height: 17px; }
.resumen-stat .n { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.resumen-stat .l { font-size: 12.5px; color: var(--muted); margin-top: 7px; font-weight: 500; }
@media (max-width: 560px) { .resumen-grid { grid-template-columns: 1fr 1fr; } .emoji-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .block-grid { grid-template-columns: 1fr; }
  .accounts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-products, .stats-row, .kpi-row { grid-template-columns: 1fr; }
  .thermo-layout { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .h1 { font-size: 32px; }
  .field-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
