/* ═══════════════════════════════════════════════════════════════
   G777 Backoffice v2 — EP design language
   Complements variables.css. Loaded last to win the cascade.
   Based on /Users/saskiadiaz/Projects/gameworldbet-landing
   ═══════════════════════════════════════════════════════════════ */

/* Load EP brand font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&display=swap');

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scroll-behavior: smooth;
}
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.28); }

/* ── TYPOGRAPHY PRIMITIVES ─────────────────────────────────── */
/* Mono family only for labels / eyebrows / clock / code — NEVER for data numbers.
   Data numbers inherit Geist/Inter from body so they match the original portal. */
.mono-family,
.mono-eyebrow,
.sl,
.lbl,
.card .lbl,
.dp-bar-label,
.dp-trigger,
.dp-preset,
.bracket,
.tb-clock-str,
.tb-user,
.topbar-left .brand-tag,
.topbar-left .brand,
.lang-toggle button,
table th,
.ws-kicker,
.sidebar-item,
.sidebar-footer button,
.status-badge.live,
.tb-user-role,
.brand-tag-ver,
.brand-tag-label,
.log-time,
.log-ip {
  font-family: 'Noto Sans Mono', 'Geist Mono', ui-monospace, Menlo, monospace;
}
.mono-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}
.mono-title {
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.bracket { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; text-transform: uppercase; }
.bracket::before { content: '['; color: var(--color-brand); }
.bracket::after  { content: ']'; color: var(--color-brand); }
.sq-marker {
  display: inline-block; width: 10px; height: 10px;
  border: 1px solid currentColor; position: relative; margin-right: 8px;
  vertical-align: middle;
}
.sq-marker::after {
  content: ''; position: absolute; inset: 2px;
  background: currentColor;
}

/* ── SIDEBAR (dark rail, hairline right) ───────────────────── */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--hair);
}
/* Sidebar item styling lives in layout.css — expanded sidebar + numbered list */
.sidebar-item .icon svg { stroke-width: 1.3; }
.sidebar-item:hover .icon svg { opacity: 1; }
.sidebar-item.active .icon svg { stroke: var(--color-brand); opacity: 1; }
.sidebar-footer { border-top: 1px solid var(--hair); }

/* ── TOPBAR (flat, thin hairline bottom) ───────────────────── */
.topbar {
  height: var(--topbar-h);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
.topbar-left { gap: 12px; }
.topbar-left svg path[fill="#fff"] { fill: #fff; }
/* ep-dashboard-inspired: mono uppercase, compact */
.topbar-left .brand {
  color: var(--ink);
  font-family: 'Geist Mono', 'Noto Sans Mono', ui-monospace, Menlo, monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.topbar-brand-group { border-left-color: var(--hair-strong); }
.topbar-left .brand-tag {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm, 8px);
  padding: 3px 7px;
  gap: 6px;
  opacity: .6;
}
.topbar-left .brand-tag-label { color: var(--t3); font-weight: 400; }
.topbar-left .brand-tag-ver  { color: var(--ink); font-weight: 500; }

.topbar-right { gap: 16px; }
.tb-user { color: var(--t3); }
.tb-user-name { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.tb-user-role {
  color: var(--color-brand);
  background: transparent;
  border: 1px solid var(--color-brand);
  border-radius: var(--r-sm, 8px);
  padding: 2px 6px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.tb-divider { background: var(--hair-strong); }
.tb-clock {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm, 8px);
  box-shadow: none;
  padding: 5px 11px;
}
.tb-clock::before { display: none; }
.tb-clock-str {
  color: var(--ink);
  text-shadow: none;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.tb-clock-day { font-weight: 800; letter-spacing: 0.16em; }
.tb-clock-gap { display: inline-block; width: 10px; }
.tb-clock-time { font-weight: 400; letter-spacing: 0.08em; color: var(--t2); }

/* Language toggle */
.lang-toggle {
  display: inline-flex; gap: 0;
  border: 1px solid var(--hair-strong); border-radius: 0;
}
.lang-toggle button {
  padding: 5px 12px; font-size: 11px; letter-spacing: 0.14em;
  background: transparent; color: var(--t3); border: none;
  text-transform: uppercase; font-family: inherit; cursor: pointer;
}
.lang-toggle button.on { background: var(--color-brand); color: #000; }

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content { background: var(--bg); }
#app-content { max-width: 1480px; padding: 36px 48px 64px; }

/* ── SECTION LABELS ────────────────────────────────────────── */
.sl {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 22px;
  padding-left: 0;
  display: inline-flex; align-items: center; gap: 12px;
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--r-sm, 8px);
  box-shadow: none;
}
.sl::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: sl-accent-shimmer 3.4s ease-in-out infinite;
}
@keyframes sl-accent-shimmer {
  0%   { background-position: 100% 0; opacity: 0.45; }
  50%  { background-position: 0% 0;   opacity: 1; }
  100% { background-position: -100% 0; opacity: 0.45; }
}

/* ── CARDS (v2u: elevated hairline + sutle shadow + hover lift) ── */
.card,
.skel-card {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--hair-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}
.card .bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  width: auto;
  /* background set inline per card (green/gold/cyan/purple/blue/red) */
}
.card .lbl {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.card .val {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card .val.xl {
  font-size: 34px;
}
.card .sub {
  font-size: 10px;
  color: var(--t3);
  margin-top: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card.meta-bg {
  background: linear-gradient(135deg, #0C3D8F, #1877F2);
  border: none;
  box-shadow: 0 4px 24px rgba(24,119,242,.15);
}
.card.meta-bg .lbl { color: rgba(255,255,255,.55); }
.card.meta-bg .val { color: #fff; }
.card.meta-bg .sub { color: rgba(255,255,255,.5); }

/* ── BUTTONS (neutral glass — quieter than pink CTA) ──────── */
.btn-pdf,
.dp-pdf {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 14px; height: 34px;
  background: rgba(255, 255, 255, 0.02);
  color: #C9C9C9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm, 8px);
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  overflow: hidden;
  position: relative;
}
.dp-pdf .dp-pdf-month {
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-brand, #EA8FD7);
  font-weight: 500;
  letter-spacing: 0.08em;
}
/* "PDF resumen" — reduced client-facing report. Ghost/dashed variant so it
   reads as the lighter, secondary export next to the full PDF button. */
.dp-pdf-lite {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  color: #9E9E9E;
}
.dp-pdf-lite:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #EDEDED;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 18px; height: 38px;
  background: var(--color-brand);
  color: #000;
  border: 1px dashed transparent;
  border-radius: var(--r-sm, 8px);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
}
.btn-pdf::before, .dp-pdf::before { display: none; }
.btn-pdf:hover, .dp-pdf:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.btn-cta:hover {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-pdf svg, .dp-pdf svg { stroke-width: 1.8; }

/* Date picker bar (refined) */
.dp-bar {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
}
.dp-bar-label {
  color: var(--t3);
  letter-spacing: 0.22em;
  font-weight: 400;
}
.dp-trigger {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm, 8px);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 14px;
}
.dp-trigger:hover { border-color: var(--color-brand); color: var(--color-brand); background: transparent; }
.dp-trigger svg:first-child { color: var(--color-brand); }
.dp-days {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm, 8px);
  padding: 5px 10px;
  color: var(--t2);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.dp-refresh {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm, 8px);
  color: var(--t2);
}
.dp-refresh:hover { border-color: rgba(255,255,255,.3); color: #FFFFFF; background: rgba(255,255,255,.04); }

.dp-panel {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  backdrop-filter: none;
}
.dp-preset {
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm, 8px);
  color: var(--t2);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  font-weight: 500;
}
.dp-preset:hover { border-color: var(--color-brand); color: var(--color-brand); background: transparent; }
.dp-preset.on {
  background: var(--color-brand);
  color: #000;
  border-color: var(--color-brand);
  font-weight: 700;
}
.dp-preset.is-current::before {
  background: var(--color-brand);
  box-shadow: none;
  animation: none;
}

/* ── TABLES ────────────────────────────────────────────────── */
.tw {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tw .th {
  padding: 18px 20px 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3);
  border-bottom: 1px solid var(--hair);
}
table th {
  padding: 12px 18px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t3);
  border-bottom: 1px solid var(--hair);
  background: transparent;
}
table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--hair);
  font-size: 12px;
  color: var(--t2);
}
table tr:hover td { background: rgba(234, 143, 215, 0.04); }

/* ── STATUS BADGES ─────────────────────────────────────────── */
.status-badge.live {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: var(--r-sm, 8px);
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
}
.status-badge.live .dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(76, 209, 122, 0.6);
}

/* ── FOOTER (editorial table-row style) ───────────────────── */
.app-footer {
  background: transparent;
  border-top: 1px solid var(--hair);
  padding: 0 40px;
  margin: 40px auto 0;
  max-width: 1360px;
  text-align: left;
}
.app-footer .ft-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 0;
}
.app-footer .ft-cell {
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  font-weight: 500;
  padding: 14px 18px;
  border-right: 1px solid var(--hair);
  white-space: nowrap;
}
.app-footer .ft-cell:last-child {
  border-right: 0;
  text-align: right;
}
.app-footer .ft-src {
  text-align: right;
  color: var(--t4);
}
.app-footer .ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: 0.18em;
}
.app-footer .ft-brand strong {
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.app-footer .ft-brand .ft-x {
  color: var(--color-brand);
  font-weight: 400;
}
.app-footer .ft-brand .ft-sq {
  width: 8px; height: 8px;
  background: var(--color-brand);
  display: inline-block;
}
.app-footer .ft-conf {
  color: var(--color-brand);
  letter-spacing: 0.28em;
}
@media (max-width: 900px) {
  .app-footer { margin-left: 0; }
  .app-footer .ft-row { grid-template-columns: 1fr; }
  .app-footer .ft-cell {
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    text-align: left;
    white-space: normal;
  }
  .app-footer .ft-cell:last-child { border-bottom: 0; text-align: left; }
  .app-footer .ft-src { text-align: left; }
}

/* ── LOGIN OVERLAY (EP proposal style) ─────────────────────── */
/* Login overlay uses login.css — EP Admin Suite style */

/* ── EP SIGNATURE — PINK ORB ON DASHBOARD HERO ─────────────── */
#app-content::before {
  content: '';
  position: fixed;
  top: 20%; left: -120px;
  width: 340px; height: 340px;
  background: var(--color-brand);
  filter: blur(140px);
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
#app-content > * { position: relative; z-index: 1; }

/* ── EP LOADING (shimmer + brand pulse) — replaces text "Cargando..." ─ */
.ep-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--t3);
  text-transform: uppercase;
  font-weight: 600;
}
.ep-loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 12px rgba(234, 143, 215, .55);
  animation: epLoadingPulse 1.2s ease-in-out infinite;
}
@keyframes epLoadingPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* Shimmer bar — slim, brand pink, under loading text */
.ep-loading-bar {
  position: relative;
  height: 3px;
  width: 100%;
  background: rgba(234, 143, 215, 0.10);
  border-radius: 2px;
  overflow: hidden;
}
.ep-loading-bar::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg,
    rgba(234, 143, 215, 0) 0%,
    rgba(234, 143, 215, .85) 50%,
    rgba(164, 137, 255, 0) 100%);
  animation: epShimmer 1.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes epShimmer {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* Skeleton block — for KPI cards / number values */
.ep-skel {
  display: inline-block;
  height: 1em;
  min-width: 60px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .04) 0%,
    rgba(234, 143, 215, .14) 50%,
    rgba(255, 255, 255, .04) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: epSkelShift 1.4s ease-in-out infinite;
  vertical-align: middle;
}
.ep-skel.lg { height: 1.4em; min-width: 110px; }
.ep-skel.xl { height: 1.8em; min-width: 140px; border-radius: 6px; }
@keyframes epSkelShift {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Block-style loader (centered inside chart cards) */
.ep-loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  width: 100%;
}
.ep-loading-block .ep-loading {
  font-size: 9.5px;
  letter-spacing: 0.18em;
}
.ep-loading-block .ep-loading-bar {
  max-width: 200px;
}

@media (prefers-reduced-motion: reduce) {
  .ep-loading-dot, .ep-loading-bar::after, .ep-skel { animation: none; }
  .ep-loading-bar::after { left: 30%; opacity: .5; }
}

/* ── ORIGEN FTD (single .ch card matching Reach vs Impressions) ─── */
.ftd-origin-card { position: relative; }
.fo-insight-strip {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}
.fo-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.fo-strip-mini {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.fo-strip-l {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--t3);
  text-transform: uppercase;
  font-weight: 600;
}
.fo-strip-v {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fo-strip-s {
  font-size: 10px;
  color: var(--t3);
  font-style: italic;
}
.fo-strip-verdict {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  text-transform: uppercase;
}
.fo-strip-verdict.success {
  color: #4CD17A;
  border-color: rgba(76, 209, 122, .55);
  background: rgba(76, 209, 122, .08);
}
.fo-strip-verdict.danger {
  color: #FF6B6B;
  border-color: rgba(255, 107, 107, .55);
  background: rgba(255, 107, 107, .08);
}
/* HALO: trazo de degradado giratorio (running gradient border) + llamas
   animadas. FX elegante, sin glow difuso. Intensidad escala con el %. */
@property --halo-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
/* Shared premium verdict frame — halo / incremental / canib all render in ONE
   design language: same rotating gradient ring + glass tooltip, only the color
   theme + icon change with the verdict (themed via --v-* tokens below). */
.fo-strip-verdict.halo,
.fo-strip-verdict.incremental,
.fo-strip-verdict.canib {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  color: var(--v-text);
  text-transform: none;
  border: 1.5px solid transparent;
  /* inner fill (padding-box) + rotating gradient stroke (border-box) */
  background:
    linear-gradient(118deg, var(--v-fill-a), var(--v-fill-b)) padding-box,
    conic-gradient(from var(--halo-ang), var(--v-ring)) border-box;
  --halo-speed: 4s;
  animation: haloSpin var(--halo-speed) linear infinite;
  cursor: help;
  outline: none;
}
/* Per-state theme tokens — fire for an earned organic lift, green for a flat
   100%-incremental month, red for cannibalization. */
.fo-strip-verdict.halo {
  --v-text: #FFE0B0;
  --v-fill-a: rgba(32, 12, 2, .96);
  --v-fill-b: rgba(58, 22, 4, .94);
  --v-ring: #FF3D00, #FFC857, #FFE9A8, #FF8A1E, #FF3D00;
  --v-pct-grad: linear-gradient(180deg, #FFE7B0, #FF8A2B);
  --v-sub: #FFB780;
}
.fo-strip-verdict.incremental {
  --v-text: #C7F0D7;
  --v-fill-a: rgba(4, 26, 15, .96);
  --v-fill-b: rgba(6, 40, 23, .94);
  --v-ring: #1FA463, #4CD17A, #B6F7CF, #2BBE74, #1FA463;
  --v-pct-grad: linear-gradient(180deg, #DFFBE9, #43C97D);
  --v-sub: #8FE3AE;
  --v-icon-glow: rgba(43, 190, 116, .5);
  --halo-speed: 6s;
}
.fo-strip-verdict.canib {
  --v-text: #FFCDCD;
  --v-fill-a: rgba(30, 6, 6, .96);
  --v-fill-b: rgba(50, 10, 10, .94);
  --v-ring: #FF3D3D, #FF9A9A, #FFD6D6, #E04848, #FF3D3D;
  --v-pct-grad: linear-gradient(180deg, #FFE0E0, #FF6B6B);
  --v-sub: #FF9E9E;
  --v-icon-glow: rgba(255, 80, 80, .5);
  --halo-speed: 6s;
}
/* single-glyph icon for the non-fire states (plus = additive, arrow = down) */
.v-icon {
  width: 16px; height: 16px; display: block; flex: none;
  filter: drop-shadow(0 0 3px var(--v-icon-glow, rgba(0, 0, 0, .35)));
}
.halo-flames { display: inline-flex; align-items: flex-end; line-height: 0; gap: 0; }
.halo-flame {
  width: 14px; height: 14px;
  display: block;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 3px rgba(255, 120, 0, .55));
  animation: haloFlicker .9s ease-in-out infinite;
}
.halo-flame:nth-child(2) { width: 16px; height: 16px; margin: 0 -2px; animation-delay: .15s; }
.halo-flame:nth-child(3) { animation-delay: .3s; }
.halo-label {
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  font-family: 'Inter', sans-serif;
}
.halo-pct {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: -.02em;
  background: var(--v-pct-grad, linear-gradient(180deg, #FFE7B0, #FF8A2B));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.halo-sub {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--v-sub, #FFB780); opacity: .85; font-family: 'Noto Sans Mono', monospace;
}
.fo-strip-verdict.halo { cursor: help; outline: none; }
/* glass popup explaining the HALO metric (matches chart tooltip style) */
.halo-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 270px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(12, 12, 12, .55);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  color: #EDEDED;
  font: 500 12px/1.55 'Geist', 'Inter', sans-serif;
  letter-spacing: .01em;
  text-transform: none;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  z-index: 50;
}
.halo-tip b {
  display: block;
  color: #FFC857;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.halo-tip b:not(:first-child) {
  display: inline;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  margin: 0;
}
.fo-strip-verdict.halo:hover .halo-tip,
.fo-strip-verdict.halo:focus-visible .halo-tip,
.fo-strip-verdict.incremental:hover .halo-tip,
.fo-strip-verdict.incremental:focus-visible .halo-tip,
.fo-strip-verdict.canib:hover .halo-tip,
.fo-strip-verdict.canib:focus-visible .halo-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 760px) {
  .halo-tip { right: auto; left: 0; width: min(270px, 84vw); }
}
/* intensity tiers: faster orbit + more flames as the lift grows */
.fo-strip-verdict.halo.halo-lo  { --halo-speed: 5s; }
.fo-strip-verdict.halo.halo-lo .halo-flame:nth-child(2),
.fo-strip-verdict.halo.halo-lo .halo-flame:nth-child(3) { display: none; }
.fo-strip-verdict.halo.halo-mid { --halo-speed: 3.6s; }
.fo-strip-verdict.halo.halo-mid .halo-flame:nth-child(3) { display: none; }
.fo-strip-verdict.halo.halo-hi  { --halo-speed: 2.2s; }
.fo-strip-verdict.halo.halo-hi .halo-pct { font-size: 16px; }
.fo-strip-verdict.halo.halo-hi .halo-flame { width: 15px; height: 15px; }
.fo-strip-verdict.halo.halo-hi .halo-flame:nth-child(2) { width: 18px; height: 18px; }
@keyframes haloSpin { to { --halo-ang: 360deg; } }
@keyframes haloFlicker {
  0%, 100% { transform: translateY(0) scaleY(1) scaleX(1); opacity: 1; }
  25%      { transform: translateY(-1px) scaleY(1.16) scaleX(.9);  opacity: .85; }
  50%      { transform: translateY(.5px) scaleY(.88) scaleX(1.1);  opacity: 1; }
  75%      { transform: translateY(-.5px) scaleY(1.08) scaleX(.96); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .fo-strip-verdict.halo,
  .fo-strip-verdict.incremental,
  .fo-strip-verdict.canib,
  .halo-flame { animation: none; }
}
.fo-strip-empty {
  font-size: 11px;
  color: var(--t3);
  font-style: italic;
  text-align: center;
  padding: 4px 0;
}
@media (max-width: 760px) {
  .fo-strip { gap: 12px; }
  .fo-strip-verdict { margin-left: 0; width: 100%; text-align: center; margin-top: 4px; }
}

/* ── FTD META attribution residual note ─────────────────────── */
.ftd-attr-note {
  margin-top: 6px;
  font-size: 9.5px;
  color: var(--t3);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  font-style: italic;
  line-height: 1.3;
  cursor: help;
}
/* Over the Meta blue card the gray note disappears — switch to a soft white. */
.card.meta-bg .ftd-attr-note {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* ── DASHBOARD WELCOME SPLASH (override) ───────────────────── */
#welcome-splash { background: var(--bg); }
.ws-kicker { color: var(--color-brand); letter-spacing: 0.3em; }
.ws-greeting { font-family: inherit; text-transform: none; letter-spacing: -0.02em; font-weight: 500; }
.ws-name { color: var(--ink); filter: none; }
.ws-hi { color: var(--t3); font-weight: 400; }
.ws-progress { background: var(--hair); }
.ws-progress-fill { background: var(--color-brand); box-shadow: none; }

/* ── MONTH PILLS (dashboard + social share paid header style) ── */
.dp-month-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dp-month-sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--hair-strong);
  margin: 0 6px;
}

/* ── SHARP CORNERS — scoped to editorial sub-pages only (v2u) ────
   Dashboard cards/charts/tables now use elevated rounded surfaces.
   Sharp corners are kept for the editorial sub-pages already approved
   (Propuestas, Templates, Tasks, SEO, Admin, Proposal detail) and for
   the inline chip/pill vocabulary that wouldn't look right rounded.
   ───────────────────────────────────────────────────────────── */
.bracket,
.pp-card,
.pp-card *,
.pp-badge,
.pp-status-menu,
.pp-status-item,
.pp-filter-chips,
/* Editorial pages now share the dashboard's rounded-corner system.
   Cards/inputs use --r (14px), buttons/chips/pills use --r-sm (8px). */
.pp-filter-chips button,
.tpl-btn,
.tpl-chip,
.tpl-pill,
.tk-filter,
.tk-chip,
.tk-btn,
.tk-status,
.tk-priority,
.adm-btn,
.adm-chip,
.seo-btn,
.seo-chip,
.seo-filter,
.prop-btn,
.prop-status-select,
.prop-back,
.prop-btn-new,
.prop-btn-add,
.prop-action,
.tpl-counts__bulk button,
.tpl-modal__actions a,
.tpl-modal__actions button,
.mono-pill {
  border-radius: var(--r-sm, 8px) !important;
}
.pp-strip,
.bd-card,
.breakdown-card,
.proposal-card,
.tpl-card,
.tpl-search,
.tpl-filters,
.tpl-modal,
.tpl-std-card,
.tpl-badge,
.tpl-input,
.tpl-toolbar,
.tpl-toolbar__search input,
.tpl-counts,
.tpl-preview,
.tpl-card__checkbox,
.tk-card,
.tk-input,
.tk-modal,
.tk-list,
.tk-loading,
.adm-card,
.adm-input,
.adm-table-wrap,
.seo-card,
.seo-input,
.prop-card,
.prop-header,
.prop-input {
  border-radius: var(--r, 14px) !important;
}

/* Restore circles — anything that needs to be round (dots, spinners, orbs) */
.dot,
.ws-dot,
.dp-current-pulse,
.loading-spinner,
.spinner,
.tpl-loader,
.tk-loader,
.status-badge .dot,
[class*="-dot"],
[class*="-pulse"],
[class*="-orb"],
.pp-orb,
.splash-orb,
.avatar,
.avatar-img,
.card-ring,
input[type="radio"],
input[type="checkbox"],
circle,
svg circle,
[style*="border-radius: 50%"] {
  border-radius: 50% !important;
}

/* ===== Crecimiento (EP Impact) page ===== */
.cre-hero { padding: 8px 2px 18px; }
.cre-kick {
  font: 600 10px 'Noto Sans Mono', monospace;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--pink, #EA8FD7); margin-bottom: 10px;
}
.cre-title {
  font: 800 30px/1.1 Geist, Inter, sans-serif;
  letter-spacing: -1px; color: var(--t1, #fff); margin: 0 0 8px;
}
.cre-sub {
  font: 500 13px Geist, Inter, sans-serif;
  color: var(--t3, #9A9A9A);
}
.cre-read {
  margin-top: 8px;
  display: inline-block;
  font: 500 11px 'Noto Sans Mono', monospace;
  letter-spacing: .02em; line-height: 1.5;
  color: var(--t3, #9A9A9A);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid var(--pink, #EA8FD7);
  border-radius: 6px;
  background: rgba(255,255,255,.02);
}
.cre-delta { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.cre-x {
  font: 800 16px Geist, Inter, sans-serif;
  color: var(--green, #4CD17A); letter-spacing: -.5px;
}
.cre-pct {
  font: 600 11px 'Noto Sans Mono', monospace;
  color: var(--green, #4CD17A); letter-spacing: .04em;
}
.cre-base {
  margin-top: 4px;
  font: 500 11px 'Noto Sans Mono', monospace;
  color: var(--t3, #6D6D6D); letter-spacing: .02em;
}
.cre-rowpost td { background: rgba(234, 143, 215, .035); }
.cre-eptag, .cre-mtd {
  display: inline-block; margin-left: 8px;
  font: 600 9px 'Noto Sans Mono', monospace;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
}
.cre-eptag { color: var(--pink, #EA8FD7); border: 1px solid rgba(234,143,215,.4); }
.cre-mtd { color: var(--green, #4CD17A); border: 1px solid rgba(76,209,122,.4); }
.cre-bento { margin-top: 14px; }
.bento-kpi-strip.cre-strip3 { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.cre-ch { margin-top: 18px; }
@media (max-width: 760px) {
  .bento-kpi-strip.cre-strip3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cre-title { font-size: 22px; }
  #cre-evo { height: 300px !important; }
}
