/* LigaPlus CRM — unified with landing (VictoryClub dark sports) */
:root {
  --vc-ink: #070B12;
  --vc-navy: #0E1624;
  --vc-navy-2: #121C2C;
  --vc-lime: #2aaf3d;
  --vc-lime-2: #229634;
  --vc-gold: #E2B93B;
  --vc-muted: rgba(255, 255, 255, 0.62);
  --vc-line: rgba(255, 255, 255, 0.1);
  --vc-soft: rgba(255, 255, 255, 0.04);
  --forest: #F2F5FA;
  --pitch: #2aaf3d;
  --lime: #2aaf3d;
  --charcoal: #E8EDF5;
  --mist: #070B12;
  --sand: #0E1624;
  --ink: #070B12;
  --line: rgba(255, 255, 255, 0.1);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --crm-sidebar: 260px;
  --crm-rail: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Themed scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 175, 61, 0.55) #0B1220;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #0B1220;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(42, 175, 61, 0.75), rgba(34, 150, 52, 0.55));
  border: 2px solid #0B1220;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2aaf3d, #229634);
}

*::-webkit-scrollbar-corner {
  background: #0B1220;
}

.crm-body,
body.crm-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--charcoal);
  background:
    radial-gradient(ellipse 70% 50% at 85% -10%, rgba(42, 175, 61, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(226, 185, 59, 0.06), transparent 50%),
    var(--vc-ink);
}

[x-cloak] { display: none !important; }

.brand-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

/* ===== SHELL ===== */
.crm-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--crm-sidebar) 1fr;
  transition: grid-template-columns 0.28s ease;
}

.crm-shell.is-sidebar-collapsed {
  grid-template-columns: var(--crm-rail) 1fr;
}

.crm-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.crm-content {
  flex: 1;
  padding: 1.25rem 1.25rem 2rem;
}

@media (min-width: 980px) {
  .crm-content {
    padding: 1.75rem 2rem 2.5rem;
  }
}

/* ===== SIDEBAR ===== */
.crm-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0B1220 0%, #070B12 100%);
  border-right: 1px solid var(--vc-line);
  z-index: 40;
  overflow: hidden;
  transition: width 0.28s ease;
}

.crm-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.15rem 0.85rem 1rem;
  border-bottom: 1px solid var(--vc-line);
}

.crm-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  flex: 1;
}

.crm-brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.crm-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.crm-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.crm-brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vc-muted);
  margin-top: 0.2rem;
}

.crm-sidebar-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  background: var(--vc-soft);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.crm-sidebar-toggle:hover {
  color: #fff;
  border-color: rgba(42, 175, 61, 0.45);
  background: rgba(42, 175, 61, 0.12);
}

.crm-sidebar-toggle .crm-toggle-expand { display: none; }
.crm-sidebar.is-collapsed .crm-toggle-collapse { display: none; }
.crm-sidebar.is-collapsed .crm-toggle-expand { display: grid; }

.crm-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.55rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.crm-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.crm-nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.crm-nav-group-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: var(--vc-soft);
}

.crm-nav-group.has-active > .crm-nav-group-btn {
  color: var(--vc-lime);
}

.crm-nav-group-chevron {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  transition: transform 0.22s ease;
  opacity: 0.8;
}

.crm-nav-group-chevron svg {
  width: 14px;
  height: 14px;
  display: block;
}

.crm-nav-group.is-open > .crm-nav-group-btn .crm-nav-group-chevron {
  transform: rotate(180deg);
}

.crm-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.crm-nav-group.is-open > .crm-nav-group-body {
  max-height: 480px;
  opacity: 1;
}

.crm-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.crm-nav-link:hover {
  background: var(--vc-soft);
  color: #fff;
}

.crm-nav-link.is-active {
  background: rgba(42, 175, 61, 0.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--vc-lime);
}

.crm-nav-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: inherit;
}

.crm-nav-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.crm-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-nav-badge {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: rgba(226, 185, 59, 0.92);
  color: #0b1220;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.35);
  animation: cmsNoticeSoft 2.4s ease-in-out infinite;
}

.crm-shell.is-sidebar-collapsed .crm-nav-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin: 0;
  min-width: 0.85rem;
  height: 0.85rem;
  padding: 0;
  font-size: 0;
}

.crm-sheet-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.crm-sheet-nav .crm-nav-badge {
  margin-left: auto;
}

.crm-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop collapsed: icons only */
.crm-shell.is-sidebar-collapsed .crm-brand-text,
.crm-shell.is-sidebar-collapsed .crm-nav-label,
.crm-shell.is-sidebar-collapsed .crm-nav-group-label,
.crm-shell.is-sidebar-collapsed .crm-nav-group-chevron {
  display: none;
}

.crm-shell.is-sidebar-collapsed .crm-sidebar-brand {
  flex-direction: column;
  padding: 0.9rem 0.45rem;
}

.crm-shell.is-sidebar-collapsed .crm-brand-link {
  justify-content: center;
}

.crm-shell.is-sidebar-collapsed .crm-sidebar-nav {
  padding: 0.55rem 0.4rem 1rem;
  align-items: stretch;
}

.crm-shell.is-sidebar-collapsed .crm-nav-group-btn {
  display: none;
}

.crm-shell.is-sidebar-collapsed .crm-nav-group-body {
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible;
}

.crm-shell.is-sidebar-collapsed .crm-nav-link {
  position: relative;
  justify-content: center;
  padding: 0.78rem 0.35rem;
  gap: 0;
}

.crm-shell.is-sidebar-collapsed .crm-nav-link.is-active {
  box-shadow: none;
}

/* ===== TOPBAR ===== */
.crm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(7, 11, 18, 0.88);
  border-bottom: 1px solid var(--vc-line);
  backdrop-filter: blur(14px);
}

@media (min-width: 980px) {
  .crm-topbar { padding: 0.95rem 2rem; }
}

.crm-topbar-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vc-lime);
  margin-bottom: 0.1rem;
}

.crm-topbar-title strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.crm-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crm-topbar-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 14rem;
  padding: 0.4rem 0.7rem 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 185, 59, 0.28);
  background: rgba(226, 185, 59, 0.08);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.crm-topbar-notice:hover {
  border-color: rgba(226, 185, 59, 0.5);
  background: rgba(226, 185, 59, 0.14);
}
.crm-topbar-notice-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e2b93b;
  box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.45);
  animation: cmsNoticeSoft 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.crm-topbar-notice-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.crm-topbar-notice-copy strong {
  color: #f3e3a8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.crm-topbar-notice-copy em {
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
}
@media (max-width: 720px) {
  .crm-topbar-notice-copy em { display: none; }
  .crm-topbar-notice { max-width: none; padding: 0.4rem 0.65rem; }
}

.crm-topbar-notice--alerts {
  border-color: rgba(42, 175, 61, 0.32);
  background: rgba(42, 175, 61, 0.1);
}
.crm-topbar-notice--alerts:hover {
  border-color: rgba(42, 175, 61, 0.55);
  background: rgba(42, 175, 61, 0.16);
}
.crm-topbar-notice--alerts .crm-topbar-notice-dot {
  background: #2aaf3d;
  box-shadow: 0 0 0 0 rgba(42, 175, 61, 0.45);
}
.crm-topbar-notice--alerts .crm-topbar-notice-copy strong {
  color: #9be6a5;
}

.crm-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.crm-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(42, 175, 61, 0.18);
  border: 1px solid rgba(42, 175, 61, 0.35);
  color: var(--vc-lime);
  font-size: 0.72rem;
  font-weight: 800;
}

.crm-user-meta {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.crm-user-meta strong {
  font-size: 0.82rem;
  color: #fff;
}

.crm-user-meta em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--vc-muted);
  font-weight: 600;
}

@media (min-width: 720px) {
  .crm-user-meta { display: flex; }
}

.crm-logout button {
  appearance: none;
  border: 1px solid var(--vc-line);
  background: var(--vc-soft);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.crm-logout button:hover {
  border-color: var(--vc-gold);
  color: var(--vc-gold);
}

/* ===== DOCK + SHEET (mobile / tablet) ===== */
.crm-dock {
  display: none;
}

.crm-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.crm-sheet.is-open { pointer-events: auto; }

.crm-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.crm-sheet.is-open .crm-sheet-backdrop { opacity: 1; }

.crm-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 640px);
  background: #0B1220;
  border: 1px solid var(--vc-line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  padding: 0.55rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
  overflow: auto;
}

.crm-sheet.is-open .crm-sheet-panel { transform: translateY(0); }

.crm-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0.2rem auto 0.85rem;
}

.crm-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.crm-sheet-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.crm-sheet-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  line-height: 1;
}

.crm-sheet-brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--vc-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.crm-sheet-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--vc-line);
  background: var(--vc-soft);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.crm-sheet-nav {
  display: grid;
  gap: 0.85rem;
}

.crm-sheet-group {
  display: grid;
  gap: 0.35rem;
}

.crm-sheet-group-label {
  margin: 0;
  padding: 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.crm-sheet-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.crm-sheet-nav a.is-active,
.crm-sheet-nav a:hover {
  color: #fff;
  border-color: rgba(42, 175, 61, 0.35);
  background: rgba(42, 175, 61, 0.12);
}

/* Tablet / mobile: icon-only rail + landing-style dock */
@media (max-width: 979px) {
  .crm-shell,
  .crm-shell.is-sidebar-collapsed {
    grid-template-columns: var(--crm-rail) 1fr;
  }

  .crm-sidebar-toggle { display: none; }

  .crm-sidebar-brand {
    padding: 0.95rem 0.45rem;
    flex-direction: column;
  }

  .crm-brand-text,
  .crm-nav-label,
  .crm-nav-group-label,
  .crm-nav-group-chevron,
  .crm-nav-group-btn {
    display: none !important;
  }

  .crm-brand-link { justify-content: center; }

  .crm-sidebar-nav {
    padding: 0.55rem 0.4rem 1rem;
    align-items: stretch;
  }

  .crm-nav-group-body {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
  }

  .crm-nav-link {
    justify-content: center;
    padding: 0.78rem 0.35rem;
    gap: 0;
  }

  .crm-nav-link.is-active {
    box-shadow: none;
    background: rgba(42, 175, 61, 0.18);
  }

  .crm-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    width: 100%;
    padding: 0.5rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: #070b12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.65);
  }

  .crm-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .crm-dock-item .crm-nav-ico {
    width: 22px;
    height: 22px;
  }

  .crm-dock-item.is-active,
  .crm-dock-item:active {
    color: #fff;
    background: rgba(42, 175, 61, 0.14);
  }

  .crm-main {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }
}

/* Phone: hide left rail, keep dock only (landing-like) */
@media (max-width: 767px) {
  .crm-shell {
    grid-template-columns: 1fr;
  }

  .crm-sidebar {
    display: none;
  }

  .crm-content {
    padding: 1rem 1rem 1.5rem;
  }

  .crm-topbar {
    padding: 0.75rem 1rem;
  }
}

body.crm-menu-lock { overflow: hidden; }

/* ===== COMPONENTS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vc-lime);
  color: #07110a;
  font-weight: 800;
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary:hover { transform: translateY(-1px); background: #34c249; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.8rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Page chrome shared by all CRM modules */
.crm-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.crm-page-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vc-lime);
}

.crm-page-head h1,
.crm-content > h1.brand-display {
  margin: 0;
  color: #fff;
}

.crm-page-sub,
.crm-muted,
.crm-body .text-\[\#4a6358\] {
  color: rgba(255, 255, 255, 0.55) !important;
}

.crm-link,
.crm-body a.text-pitch,
table.data a {
  color: var(--vc-lime);
  font-weight: 700;
  text-decoration: none;
}

.crm-link:hover,
.crm-body a.text-pitch:hover,
table.data a:hover {
  color: #4fd65f;
}

.crm-link-danger,
.crm-body .text-red-700,
table.data button.text-red-700 {
  color: #ff8d8d !important;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.crm-link-danger:hover,
.crm-body .text-red-700:hover {
  color: #ffb0b0 !important;
}

.crm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(42, 175, 61, 0.35);
  background: rgba(42, 175, 61, 0.12);
  color: #b8f5c1;
}

.crm-badge.is-off {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
}

.crm-stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.crm-stat-value {
  font-family: var(--font-display);
  font-size: 2.35rem;
  letter-spacing: 0.03em;
  color: var(--vc-lime);
  margin-top: 0.35rem;
  line-height: 1;
}

form.inline { display: inline; }

.crm-empty {
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.panel {
  background: var(--vc-navy);
  border: 1px solid var(--vc-line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.flash {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
  border-radius: 12px;
  font-size: 0.9rem;
}
.flash-success {
  background: rgba(42, 175, 61, 0.12);
  border-color: var(--vc-lime);
  color: #d9f7df;
}
.flash-error {
  background: rgba(220, 60, 60, 0.12);
  border-color: #e35d5d;
  color: #ffd4d4;
}

.table-wrap { overflow-x: auto; border-radius: 16px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--vc-line);
}

table.data th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--vc-muted);
  background: rgba(255, 255, 255, 0.02);
}

table.data td { color: rgba(255, 255, 255, 0.88); }

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

label.field input,
label.field select,
label.field textarea {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  background: #0B1220 !important;
  background-color: #0B1220 !important;
  color: #fff !important;
  color-scheme: dark;
}

label.field input:-webkit-autofill,
label.field input:-webkit-autofill:hover,
label.field input:-webkit-autofill:focus,
.crm-body input:-webkit-autofill,
.crm-body input:-webkit-autofill:hover,
.crm-body input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0 1000px #0B1220 inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

label.field input:focus,
label.field select:focus,
label.field textarea:focus {
  outline: 2px solid rgba(42, 175, 61, 0.35);
  border-color: var(--vc-lime);
}

label.field input::placeholder,
label.field textarea::placeholder,
.crm-body input::placeholder,
.crm-body textarea::placeholder,
.crm-modal input::placeholder,
.crm-modal textarea::placeholder,
.crm-filters input::placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.22) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  font-style: normal;
}

label.field input::-webkit-input-placeholder,
label.field textarea::-webkit-input-placeholder,
.crm-modal input::-webkit-input-placeholder,
.crm-modal textarea::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.22) !important;
  font-weight: 400 !important;
}

label.field input::-moz-placeholder,
label.field textarea::-moz-placeholder,
.crm-modal input::-moz-placeholder,
.crm-modal textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.22) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

label.field select option {
  background: #0E1624;
  color: #fff;
}

label.field span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

label.field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--vc-lime);
}

.crm-content .space-y-8 > section.panel,
.crm-content form.space-y-8 > section.panel {
  position: relative;
  overflow: hidden;
}

.crm-content .space-y-8 > section.panel::before,
.crm-content form.space-y-8 > section.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--vc-lime), var(--vc-gold));
}

.crm-content h2.font-bold {
  letter-spacing: 0.02em;
}

/* Soft overrides for older light utility leftovers */
.crm-body .bg-white,
.crm-body .bg-white\/90 {
  background: var(--vc-navy) !important;
}

.crm-body .border-\[var\(--line\)\],
.crm-body [class*="border-[var(--line)]"] {
  border-color: var(--vc-line) !important;
}

.crm-body .text-red-700 { color: #ff8d8d !important; }

.crm-body .btn-ghost.\\!text-forest,
.crm-body a.btn-ghost {
  color: #fff !important;
  border-color: var(--vc-line) !important;
}

#player3d-canvas {
  width: 100%;
  display: block;
}

/* Legacy landing helpers kept for shared pages */
.pitch-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(42, 175, 61, 0.18), transparent 55%),
    linear-gradient(160deg, #070B12 0%, #0E1624 55%, #12301a 100%);
}

.pitch-lines {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.anim-rise { animation: crm-rise 0.8s ease-out both; }
.anim-rise-delay { animation: crm-rise 0.9s ease-out 0.15s both; }
.anim-fade { animation: crm-fade 1.1s ease-out both; }

@keyframes crm-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes crm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Page transition (fade in / fade out) ===== */
.crm-page-transition {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(42, 175, 61, 0.12), transparent 52%),
    #070B12;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.crm-page.is-loading .crm-page-transition,
.crm-page.is-leaving .crm-page-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.crm-page-transition-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 140px;
  opacity: 0;
  transition: opacity 0.7s ease 0.12s;
}

.crm-page.is-loading .crm-page-transition-inner,
.crm-page.is-leaving .crm-page-transition-inner {
  opacity: 1;
}

.crm-page-transition-spinner {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.crm-page-transition-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: #2aaf3d;
  border-right-color: rgba(42, 175, 61, 0.35);
  animation: crm-page-spin 0.85s linear infinite;
}

.crm-page-transition-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(42, 175, 61, 0.18);
}

.crm-page-transition-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.crm-page-transition-label::after {
  content: '';
  animation: crm-page-dots 1.2s steps(4, end) infinite;
}

.crm-page-transition-bar {
  width: 96px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.crm-page-transition-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #2aaf3d 40%, #E2B93B 70%, transparent);
  animation: crm-page-bar 0.95s ease-in-out infinite;
}

.crm-page .crm-shell {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.crm-page.is-loading .crm-shell,
.crm-page.is-leaving .crm-shell {
  opacity: 0;
  pointer-events: none;
}

.crm-page.is-ready .crm-shell {
  opacity: 1;
  pointer-events: auto;
}

.crm-page.is-ready .crm-content {
  animation: crm-page-fade-in 0.95s ease both;
}

@keyframes crm-page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes crm-page-spin {
  to { transform: rotate(360deg); }
}

@keyframes crm-page-bar {
  0% { transform: translateX(-140%); }
  100% { transform: translateX(260%); }
}

@keyframes crm-page-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

@media (prefers-reduced-motion: reduce) {
  .crm-page-transition,
  .crm-page .crm-shell,
  .crm-page-transition-spinner::before,
  .crm-page-transition-bar::after,
  .crm-page-transition-label::after,
  .crm-page.is-ready .crm-content {
    animation: none !important;
    transition: none !important;
  }
  .crm-page.is-loading .crm-shell,
  .crm-page.is-leaving .crm-shell,
  .crm-page .crm-shell {
    opacity: 1;
  }
  .crm-page-transition {
    display: none;
  }
}

/* ===== Ligas / CRM data UI ===== */
.crm-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 1100px) {
  .crm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .crm-stat-grid { grid-template-columns: 1fr; }
}

.crm-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.05rem 1.05rem;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(42, 175, 61, 0.18), transparent 55%),
    linear-gradient(160deg, #121C2C 0%, #0B1220 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  min-height: 132px;
}

.crm-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--vc-lime), var(--vc-gold));
}

.crm-stat-card.is-live {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(42, 175, 61, 0.28), transparent 55%),
    linear-gradient(160deg, #12301a 0%, #0B1220 100%);
}

.crm-stat-card.is-pro {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(226, 185, 59, 0.22), transparent 55%),
    linear-gradient(160deg, #2a2412 0%, #0B1220 100%);
}

.crm-stat-card.is-mix {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(90, 170, 255, 0.16), transparent 55%),
    linear-gradient(160deg, #121C2C 0%, #0B1220 100%);
}

.crm-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.crm-stat-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(42, 175, 61, 0.14);
  border: 1px solid rgba(42, 175, 61, 0.28);
  color: var(--vc-lime);
}

.crm-stat-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.crm-stat-card.is-pro .crm-stat-ico {
  color: var(--vc-gold);
  background: rgba(226, 185, 59, 0.14);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-stat-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.crm-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
}

.crm-stat-card.is-live .crm-stat-num { color: var(--vc-lime); }
.crm-stat-card.is-pro .crm-stat-num { color: var(--vc-gold); }

.crm-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.crm-stat-foot {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}

.crm-stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.7rem;
  margin-top: 0.15rem;
}

.crm-stat-mini-grid em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1;
}

.crm-stat-mini-grid span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.crm-table-card {
  overflow: hidden;
  padding: 0;
}

.crm-toolbar {
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 1rem;
}

.crm-toolbar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.crm-toolbar-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vc-lime);
}

.crm-toolbar-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
}

.crm-table-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--vc-line);
  background: rgba(7, 11, 18, 0.35);
}

.crm-table-meta {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.crm-table-meta strong {
  color: var(--vc-lime);
  font-size: 0.95rem;
}

.crm-filters {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1.35fr repeat(3, minmax(110px, 0.7fr)) auto;
  align-items: end;
}

.crm-filters.is-compact .crm-filter-field > span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.crm-filters.is-compact .crm-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.crm-filters.is-compact input,
.crm-filters.is-compact select,
.crm-filter-search input,
.crm-body input,
.crm-body select,
.crm-body textarea {
  color-scheme: dark;
  caret-color: #fff;
  background: #0B1220 !important;
  background-color: #0B1220 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.crm-filters.is-compact input,
.crm-filters.is-compact select {
  font-size: 0.7rem !important;
  font-weight: 600;
  padding: 0.45rem 0.55rem !important;
  min-height: 32px;
  border-radius: 9px !important;
}

.crm-filters.is-compact select option,
.crm-body select option {
  background: #0B1220;
  color: #fff;
}

.crm-filter-search {
  position: relative;
  display: block;
}

.crm-filter-search input {
  width: 100%;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  padding: 0.45rem 0.55rem 0.45rem 1.9rem;
  min-height: 32px;
}

.crm-filter-search input:focus,
.crm-filters.is-compact select:focus,
.crm-filters.is-compact input:focus,
.crm-body input:focus,
.crm-body select:focus,
.crm-body textarea:focus {
  outline: 2px solid rgba(42, 175, 61, 0.3);
  border-color: var(--vc-lime) !important;
}

.crm-filter-ico {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
}

.crm-filter-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.crm-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(42, 175, 61, 0.4);
  background: rgba(42, 175, 61, 0.18);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.crm-filter-btn.is-ghost {
  background: rgba(7, 11, 18, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

.crm-filter-btn:hover {
  background: rgba(42, 175, 61, 0.28);
}

.crm-filter-btn.is-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1100px) {
  .crm-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .crm-filters {
    grid-template-columns: 1fr;
  }

  .crm-page-head h1,
  .crm-content > .crm-page-head .brand-display {
    font-size: 1.85rem !important;
  }

  .crm-page-sub {
    font-size: 0.72rem;
  }

  .crm-stat-card {
    min-height: auto;
    padding: 0.8rem 0.85rem;
  }

  .crm-stat-num { font-size: 1.75rem; }
  .crm-stat-label { font-size: 0.62rem; }
  .crm-stat-tag { font-size: 0.55rem; }
  .crm-stat-mini-grid em { font-size: 1.1rem; }
  .crm-stat-mini-grid span { font-size: 0.55rem; }

  .crm-table {
    min-width: 640px;
    font-size: 0.78rem;
  }

  .crm-table th {
    font-size: 0.58rem;
    padding: 0.65rem 0.75rem;
  }

  .crm-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.74rem;
  }

  .crm-entity strong { font-size: 0.78rem; }
  .crm-entity span,
  .crm-cell-stack span { font-size: 0.62rem; }
  .crm-chip { font-size: 0.58rem; padding: 0.2rem 0.45rem; }
  .crm-badge { font-size: 0.58rem; }

  .crm-toolbar-title { font-size: 0.6rem; }
  .crm-toolbar-hint { font-size: 0.58rem; }
  .crm-filters.is-compact .crm-filter-field > span { font-size: 0.55rem; }
  .crm-filters.is-compact input,
  .crm-filters.is-compact select,
  .crm-filter-search input {
    font-size: 0.65rem !important;
  }
}

@media (max-width: 640px) {
  .crm-filters {
    grid-template-columns: 1fr;
  }
}

.crm-table-wrap {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.crm-table th {
  text-align: left;
  padding: 0.85rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--vc-line);
  white-space: nowrap;
}

.crm-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.88);
}

.crm-table tbody tr {
  transition: background 0.18s ease;
}

.crm-table tbody tr:hover {
  background: rgba(42, 175, 61, 0.06);
}

.crm-table-actions {
  text-align: right;
  white-space: nowrap;
}

.crm-entity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.crm-entity-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(42, 175, 61, 0.35);
  background: rgba(42, 175, 61, 0.12);
}

.crm-entity-avatar.is-fallback {
  display: grid;
  place-items: center;
  color: var(--vc-lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.crm-entity strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.crm-entity span,
.crm-cell-stack span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
}

.crm-cell-stack strong {
  color: #fff;
  font-size: 0.88rem;
}

.crm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.crm-chip-profesional {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-chip-amateur {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-infantil {
  color: #b8f5c1;
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.3);
}

.crm-chip-femenino {
  color: #ffb4d4;
  background: rgba(255, 120, 180, 0.12);
  border-color: rgba(255, 120, 180, 0.28);
}

.crm-chip-natural {
  color: #b8f5c1;
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.3);
}

.crm-chip-sintetica {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-cemento {
  color: #c8d0dc;
  background: rgba(180, 190, 210, 0.12);
  border-color: rgba(180, 190, 210, 0.28);
}

.crm-chip-tierra {
  color: #e8c48a;
  background: rgba(200, 140, 60, 0.14);
  border-color: rgba(200, 140, 60, 0.3);
}

.crm-chip-parquet {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-chip-masculino {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-mixto {
  color: #d4b8ff;
  background: rgba(160, 120, 255, 0.12);
  border-color: rgba(160, 120, 255, 0.28);
}

.crm-chip-formativo {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-barrial {
  color: #e8c48a;
  background: rgba(200, 140, 60, 0.14);
  border-color: rgba(200, 140, 60, 0.3);
}

.crm-chip-por {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-chip-def {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-med {
  color: #b8f5c1;
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.3);
}

.crm-chip-del {
  color: #ffb4d4;
  background: rgba(255, 120, 180, 0.12);
  border-color: rgba(255, 120, 180, 0.28);
}

.crm-chip-lic-a {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-lic-b {
  color: #b8f5c1;
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.3);
}

.crm-chip-lic-c {
  color: #e8c48a;
  background: rgba(200, 140, 60, 0.14);
  border-color: rgba(200, 140, 60, 0.3);
}

.crm-chip-conmebol {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-chip-directivo {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-chip-tecnico {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-internacional_fifa {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-chip-nacional {
  color: #b8f5c1;
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.3);
}

.crm-chip-provincial {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.12);
  border-color: rgba(90, 170, 255, 0.28);
}

.crm-chip-cantonal {
  color: #e8c48a;
  background: rgba(200, 140, 60, 0.14);
  border-color: rgba(200, 140, 60, 0.3);
}

.crm-chip-barrial {
  color: #c8d0dc;
  background: rgba(180, 190, 210, 0.12);
  border-color: rgba(180, 190, 210, 0.28);
}

.crm-chip-aspirante {
  color: #d4b8ff;
  background: rgba(160, 120, 255, 0.12);
  border-color: rgba(160, 120, 255, 0.28);
}

.crm-badge-activa {
  color: #b8f5c1;
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.3);
}

.crm-badge-mantenimiento {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}

.crm-badge-inactiva,
.crm-badge.is-off {
  color: #ffb0b0;
  background: rgba(220, 60, 60, 0.12);
  border-color: rgba(220, 60, 60, 0.28);
}

.crm-amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.crm-amenity {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--vc-line);
}

.crm-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--vc-line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.crm-icon-btn:hover {
  color: #fff;
  border-color: rgba(42, 175, 61, 0.4);
  background: rgba(42, 175, 61, 0.12);
}

.crm-icon-btn.is-danger:hover {
  color: #ffb0b0;
  border-color: rgba(255, 100, 100, 0.4);
  background: rgba(220, 60, 60, 0.12);
}

.crm-icon-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.crm-antiguedad {
  color: var(--vc-lime) !important;
  font-weight: 700 !important;
}

.crm-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.crm-switch input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--vc-lime);
}

/* Modal */
.crm-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.crm-modal.is-open { pointer-events: auto; }

.crm-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.crm-modal.is-open .crm-modal-backdrop { opacity: 1; }

.crm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(90vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(42, 175, 61, 0.14), transparent 55%),
    #0E1624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.crm-modal.is-open .crm-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.crm-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--vc-line);
  background: rgba(7, 11, 18, 0.55);
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
}

.crm-modal-head h2 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.crm-modal-x {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--vc-line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.crm-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0;
}

.crm-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.1rem 1.25rem;
  min-height: 0;
}

.crm-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--vc-line);
  background: rgba(7, 11, 18, 0.72);
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.crm-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.crm-upload-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.crm-upload-box {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(42, 175, 61, 0.35);
  background: rgba(7, 11, 18, 0.55);
}

.crm-upload-box input[type="file"] {
  width: 100%;
  color: #fff;
  font-size: 0.78rem;
  background: #0B1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.crm-upload-meta {
  display: grid;
  gap: 0.35rem;
}

.crm-upload-meta strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

.crm-upload-current {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.crm-upload-current a {
  color: var(--vc-lime);
  font-weight: 700;
  text-decoration: none;
}

.crm-upload-current a:hover { text-decoration: underline; }

.crm-upload-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffb0b0;
  cursor: pointer;
}

.crm-upload-remove input {
  accent-color: #e35d5d;
}

@media (max-width: 640px) {
  .crm-modal {
    padding: 0;
    place-items: end stretch;
  }

  .crm-modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
}

/* Placeholders tenues (no confundir con valor escrito) */
.crm-modal-body input::placeholder,
.crm-modal-body textarea::placeholder,
.crm-modal-form input::placeholder,
.crm-modal-form textarea::placeholder,
.crm-content input::placeholder,
.crm-content textarea::placeholder {
  color: rgba(148, 163, 184, 0.55) !important;
  -webkit-text-fill-color: rgba(148, 163, 184, 0.55) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* ===== Toasts + Confirm ===== */
.crm-toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: grid;
  gap: 0.65rem;
  width: min(360px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.crm-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(42, 175, 61, 0.18), transparent 55%),
    #0E1624;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.crm-toast.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.crm-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.crm-toast-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(42, 175, 61, 0.16);
  border: 1px solid rgba(42, 175, 61, 0.35);
  color: var(--vc-lime);
  position: relative;
}

.crm-toast-ico::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.crm-toast.is-error {
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(227, 93, 93, 0.2), transparent 55%),
    #0E1624;
}

.crm-toast.is-error .crm-toast-ico {
  color: #ff8d8d;
  background: rgba(227, 93, 93, 0.14);
  border-color: rgba(227, 93, 93, 0.35);
}

.crm-toast.is-error .crm-toast-ico::before {
  content: "×";
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.crm-toast.is-delete .crm-toast-ico {
  color: #E2B93B;
  background: rgba(226, 185, 59, 0.14);
  border-color: rgba(226, 185, 59, 0.35);
}

.crm-toast.is-update .crm-toast-ico {
  color: #9ad4ff;
  background: rgba(90, 170, 255, 0.14);
  border-color: rgba(90, 170, 255, 0.3);
}

.crm-toast-copy strong {
  display: block;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.crm-toast-copy p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 600;
}

.crm-toast-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.crm-toast-x:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.crm-confirm {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.crm-confirm.is-open { pointer-events: auto; }

.crm-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.crm-confirm.is-open .crm-confirm-backdrop { opacity: 1; }

.crm-confirm-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(227, 93, 93, 0.16), transparent 55%),
    #0E1624;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.crm-confirm.is-open .crm-confirm-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.crm-confirm.is-success .crm-confirm-panel {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(42, 175, 61, 0.18), transparent 55%),
    #0E1624;
}

.crm-confirm-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 93, 93, 0.35);
  background: rgba(227, 93, 93, 0.12);
  color: #ff8d8d;
  position: relative;
}

.crm-confirm-ico::before {
  content: "!";
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.crm-confirm-ico.is-success {
  color: var(--vc-lime);
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.35);
}

.crm-confirm-ico.is-success::before {
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.crm-confirm-panel .crm-page-kicker {
  margin-bottom: 0.25rem;
}

.crm-confirm-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.crm-confirm-panel > p#crm-confirm-text {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
}

.crm-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.crm-confirm-ok.is-danger {
  background: #e35d5d;
  color: #fff;
}

.crm-confirm-ok.is-danger:hover {
  background: #ef6f6f;
}

/* Legacy flash hide if any leftover */
.flash { display: none; }

.eval-ponder-hint {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 175, 61, 0.28);
  background: rgba(42, 175, 61, 0.08);
}

.eval-ponder-hint strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2aaf3d;
  margin-bottom: 0.35rem;
}

.eval-ponder-hint p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.eval-ponder-hint em {
  font-style: normal;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.eval-scale-note {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.eval-score-error {
  outline: 1px solid #e35d5d !important;
  box-shadow: 0 0 0 2px rgba(227, 93, 93, 0.2);
}

/* ── Laboratorio de evaluaciones (split 25/75) ── */
.eval-lab {
  --eval-accent: #2aaf3d;
  --eval-gold: #e2b93b;
  --eval-panel: rgba(10, 22, 40, 0.72);
  --eval-line: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: calc(100vh - 7rem);
}

.eval-lab-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.25rem 0 0.5rem;
}

.eval-lab-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.eval-lab-crest {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.eval-lab-crest.is-fallback {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, rgba(42, 175, 61, 0.4), rgba(226, 185, 59, 0.22));
  padding: 0;
}

.eval-lab-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.eval-lab-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.eval-equipo-switch label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.eval-equipo-switch select {
  min-width: 12rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--eval-line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.eval-lab-grid {
  display: grid;
  grid-template-columns: minmax(220px, 25%) minmax(0, 75%);
  gap: 1rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.eval-lab-roster {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid var(--eval-line);
  background:
    linear-gradient(165deg, rgba(42, 175, 61, 0.08), transparent 40%),
    var(--eval-panel);
  overflow: hidden;
}

.eval-lab-roster-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1rem 0.65rem;
  border-bottom: 1px solid var(--eval-line);
}

.eval-lab-roster-head strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eval-lab-roster-head span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.eval-lab-roster-list {
  overflow: auto;
  flex: 1;
  padding: 0.35rem;
  scrollbar-width: thin;
}

.eval-roster-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  text-align: left;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.eval-roster-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.eval-roster-item.is-active {
  background: rgba(42, 175, 61, 0.12);
  border-color: rgba(42, 175, 61, 0.35);
  transform: translateX(2px);
}

.eval-roster-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eval-roster-avatar.is-team-img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem;
}

.eval-roster-avatar.is-team {
  background: linear-gradient(135deg, rgba(42, 175, 61, 0.35), rgba(226, 185, 59, 0.2));
  color: #fff;
}

.eval-roster-avatar.is-fallback {
  color: rgba(255, 255, 255, 0.85);
}

.eval-roster-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.eval-roster-meta strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eval-roster-meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eval-roster-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--eval-gold);
  font-variant-numeric: tabular-nums;
}

.eval-lab-stage {
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  border: 1px solid var(--eval-line);
  background:
    radial-gradient(900px 320px at 10% -10%, rgba(42, 175, 61, 0.14), transparent 55%),
    radial-gradient(700px 280px at 100% 0%, rgba(226, 185, 59, 0.08), transparent 50%),
    var(--eval-panel);
  padding: 1.1rem 1.15rem 1.25rem;
  overflow: auto;
}

.eval-dash {
  animation: evalDashIn 0.35s ease;
}

.eval-dash[hidden] {
  display: none !important;
}

@keyframes evalDashIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.eval-dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.eval-dash-hero-main {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.eval-dash-portrait {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.eval-dash-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eval-dash-portrait.is-crest {
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
}

.eval-dash-portrait.is-crest img {
  object-fit: contain;
}

.eval-dash-portrait.is-fallback {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, rgba(42, 175, 61, 0.35), rgba(226, 185, 59, 0.18));
  padding: 0;
}

.eval-dash-portrait.is-player.is-fallback {
  font-size: 1.35rem;
}

.eval-dash-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eval-accent);
}

.eval-dash-hero h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.eval-dash-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  max-width: 36rem;
}

.eval-dash-hero-score {
  min-width: 7.5rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 185, 59, 0.28);
  background: linear-gradient(160deg, rgba(226, 185, 59, 0.16), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.eval-dash-hero-score span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.eval-dash-hero-score strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--eval-gold);
  font-variant-numeric: tabular-nums;
}

.eval-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.eval-kpi {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--eval-line);
  background: rgba(255, 255, 255, 0.03);
}

.eval-kpi span {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.eval-kpi span em {
  font-style: normal;
  color: rgba(42, 175, 61, 0.9);
  text-transform: none;
  letter-spacing: 0;
}

.eval-kpi strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.eval-kpi.is-high strong { color: #4ad463; }
.eval-kpi.is-mid strong { color: var(--eval-gold); }
.eval-kpi.is-low strong { color: #ef8b6f; }
.eval-kpi.is-empty strong { color: rgba(255, 255, 255, 0.35); }

.eval-dash-panels {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
}

.eval-panel {
  padding: 0.9rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--eval-line);
  background: rgba(0, 0, 0, 0.18);
}

.eval-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.eval-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.eval-panel-head h3 {
  margin: 0;
}

.eval-insight {
  margin-top: 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(42, 175, 61, 0.28);
  background:
    linear-gradient(145deg, rgba(42, 175, 61, 0.1), rgba(10, 16, 28, 0.55) 42%, rgba(226, 185, 59, 0.06));
}
.eval-insight-head {
  margin-bottom: 0.85rem;
}
.eval-insight-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 175, 61, 0.95);
}
.eval-insight-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.eval-insight-summary {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.eval-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.eval-insight-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.7rem 0.75rem 0.8rem;
  min-height: 8.5rem;
}
.eval-insight-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.eval-insight-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}
.eval-insight-card li {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}
.eval-insight-card li.is-empty {
  list-style: none;
  margin-left: -1rem;
  color: rgba(255, 255, 255, 0.4);
}
.eval-insight-card.is-pro {
  border-color: rgba(42, 175, 61, 0.35);
}
.eval-insight-card.is-pro h4 { color: #2aaf3d; }
.eval-insight-card.is-risk {
  border-color: rgba(239, 68, 68, 0.28);
}
.eval-insight-card.is-risk h4 { color: #f87171; }
.eval-insight-card.is-plan {
  border-color: rgba(226, 185, 59, 0.35);
}
.eval-insight-card.is-plan h4 { color: #E2B93B; }

@media (max-width: 980px) {
  .eval-insight-grid {
    grid-template-columns: 1fr;
  }
}

.eval-radar-wrap {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.eval-radar {
  width: min(100%, 320px);
  height: auto;
}

.eval-radar-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.eval-radar-axis {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.eval-radar-area {
  fill: rgba(42, 175, 61, 0.28);
  stroke: #2aaf3d;
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(42, 175, 61, 0.25));
  transition: all 0.35s ease;
}

.eval-radar-dot {
  fill: #e2b93b;
  stroke: #0a1628;
  stroke-width: 1.5;
}

.eval-radar-label {
  fill: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-family: inherit;
}

.eval-bars {
  display: grid;
  gap: 0.55rem;
}

.eval-bar-row .eval-bar-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.eval-bar-row .eval-bar-meta span {
  color: rgba(255, 255, 255, 0.62);
}

.eval-bar-row .eval-bar-meta strong {
  font-variant-numeric: tabular-nums;
}

.eval-bar-row.is-high .eval-bar-meta strong { color: #4ad463; }
.eval-bar-row.is-mid .eval-bar-meta strong { color: var(--eval-gold); }
.eval-bar-row.is-low .eval-bar-meta strong { color: #ef8b6f; }
.eval-bar-row.is-empty .eval-bar-meta strong { color: rgba(255, 255, 255, 0.35); }

.eval-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.eval-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f8f32, #2aaf3d 55%, #e2b93b);
  transition: width 0.45s ease;
}

.eval-rank-list {
  display: grid;
  gap: 0.35rem;
}

.eval-rank-item {
  display: grid;
  grid-template-columns: 1.6rem 36px 1fr minmax(60px, 28%) auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.eval-rank-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.eval-rank-pos {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.eval-rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eval-rank-avatar.is-fallback {
  color: rgba(255, 255, 255, 0.85);
}

.eval-rank-name {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eval-rank-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.eval-rank-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(42, 175, 61, 0.7), #e2b93b);
}

.eval-rank-score {
  font-size: 0.9rem;
  color: var(--eval-gold);
  font-variant-numeric: tabular-nums;
}

.eval-history {
  display: grid;
  gap: 0.35rem;
}

.eval-history-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--eval-line);
}

.eval-history-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.eval-history-tipo {
  font-size: 0.84rem;
}

.eval-history-nota {
  font-variant-numeric: tabular-nums;
}

.eval-history-nota.is-high { color: #4ad463; }
.eval-history-nota.is-mid { color: var(--eval-gold); }
.eval-history-nota.is-low { color: #ef8b6f; }

@media (max-width: 1100px) {
  .eval-lab-grid {
    grid-template-columns: minmax(200px, 30%) minmax(0, 70%);
  }

  .eval-dash-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .eval-lab-grid {
    grid-template-columns: 1fr;
  }

  .eval-lab-roster {
    max-height: 280px;
  }

  .eval-lab-roster-list {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .eval-lab-roster-list .eval-roster-item {
    min-width: 200px;
    margin-bottom: 0;
  }

  .eval-roster-item[data-player-id="0"] {
    margin: 0 0.35rem 0.35rem;
  }
}

@media (max-width: 640px) {
  .crm-toast-stack {
    top: auto;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

/* ── Tabla de posiciones / clasificación ── */
.stand-lab {
  --stand-accent: #2aaf3d;
  --stand-gold: #e2b93b;
  --stand-panel: rgba(10, 22, 40, 0.72);
  --stand-line: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stand-lab-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: -0.02em;
}

.stand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--stand-line);
  background: var(--stand-panel);
}

.stand-filter-field {
  display: grid;
  gap: 0.25rem;
  min-width: 10rem;
  flex: 1 1 10rem;
}

.stand-filter-field span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.stand-filter-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stand-line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-height: 42px;
}

.stand-filter-locked {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stand-line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-height: 42px;
  opacity: 0.92;
  cursor: default;
}

.stand-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.stand-kpi {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--stand-line);
  background: rgba(255, 255, 255, 0.03);
}

.stand-kpi span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.stand-kpi strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stand-kpi em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--stand-gold);
}

.stand-kpi.is-gold strong {
  color: var(--stand-gold);
}

.stand-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.stand-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stand-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.stand-legend .is-champ i { background: #e2b93b; }
.stand-legend .is-playoff i { background: #2aaf3d; }
.stand-legend .is-mid i { background: rgba(255, 255, 255, 0.25); }

.stand-legend-note {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.stand-podium {
  --pod-gold: #e2b93b;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  perspective: 1100px;
  padding: 0.5rem 0 0.25rem;
}
.stand-podium-aura {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(380px, 65%);
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(226, 185, 59, 0.22), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.stand-podium-col {
  --pod-accent: #9aa6bc;
  --pod-plinth-h: 3.8rem;
  --pod-lift: 0px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transform: translateY(var(--pod-lift));
  animation: standIn 0.45s ease both;
}
.stand-podium-col.is-gold {
  --pod-accent: var(--pod-gold);
  --pod-plinth-h: 5.6rem;
  --pod-lift: -14px;
  z-index: 2;
}
.stand-podium-col.is-silver {
  --pod-accent: #c5cedd;
  --pod-plinth-h: 4.5rem;
}
.stand-podium-col.is-bronze {
  --pod-accent: #c48a55;
  --pod-plinth-h: 3.4rem;
}

.stand-podium-card {
  position: relative;
  text-align: center;
  padding: 1.2rem 1rem 1.15rem;
  margin: 0 0.1rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--pod-accent) 40%, transparent);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(480px 160px at 50% 0%, color-mix(in srgb, var(--pod-accent) 18%, transparent), transparent 60%),
    var(--stand-panel);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stand-podium-col:hover .stand-podium-card {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--pod-accent) 70%, transparent);
}
.stand-podium-col.is-gold .stand-podium-card {
  border-color: rgba(226, 185, 59, 0.55);
  background:
    linear-gradient(165deg, rgba(226, 185, 59, 0.2), transparent 46%),
    radial-gradient(500px 180px at 50% 0%, rgba(226, 185, 59, 0.22), transparent 55%),
    var(--stand-panel);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(226, 185, 59, 0.1);
}

@keyframes standIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(var(--pod-lift)); }
}

.stand-podium-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.4rem;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1405;
  background: linear-gradient(135deg, var(--pod-accent), color-mix(in srgb, var(--pod-accent) 72%, #fff));
}
.stand-podium-col.is-gold .stand-podium-ribbon {
  background: linear-gradient(135deg, #f0d06a, #e2b93b 45%, #b8891a);
}

.stand-podium-crest-static {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid color-mix(in srgb, var(--pod-accent) 50%, transparent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.stand-podium-crest-static img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.stand-podium-crest-static span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pod-accent);
}

/* Solo campeón: logo redondo girando */
.stand-podium-crest-wrap.is-spin {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.75rem;
  perspective: 720px;
  -webkit-perspective: 720px;
  position: relative;
}
.stand-podium-crest-wrap.is-spin::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 185, 59, 0.35), transparent 70%);
  filter: blur(5px);
  pointer-events: none;
  animation: standChampGlow 3s ease-in-out infinite;
}
.stand-podium-crest-disc {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: standChampSpinY 3s linear infinite;
  will-change: transform;
}
.stand-podium-crest-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(145deg, rgba(240, 208, 106, 0.5), rgba(12, 18, 30, 0.95) 52%, rgba(226, 185, 59, 0.25));
  border: 2.5px solid rgba(226, 185, 59, 0.85);
  box-shadow:
    0 0 0 4px rgba(226, 185, 59, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.stand-podium-crest-face.is-back {
  transform: rotateY(180deg);
}
.stand-podium-crest-face img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.stand-podium-crest-face span {
  font-size: 0.95rem;
  font-weight: 800;
  color: #e2b93b;
}
@keyframes standChampSpinY {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes standChampGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .stand-podium-crest-disc,
  .stand-podium-crest-wrap.is-spin::before {
    animation: none !important;
  }
}

.stand-podium-card h2 {
  margin: 0;
  font-size: 1rem;
}
.stand-podium-col.is-gold .stand-podium-card h2 {
  font-size: 1.08rem;
}

.stand-podium-pts {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.7rem;
  color: var(--pod-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stand-podium-col.is-gold .stand-podium-pts {
  font-size: 1.9rem;
  color: var(--pod-gold);
}
.stand-podium-pts span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.stand-podium-meta {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.stand-podium-plinth {
  position: relative;
  height: var(--pod-plinth-h);
  margin-top: -1px;
}
.stand-podium-plinth-top {
  height: 0.5rem;
  margin: 0 0.05rem;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--pod-accent) 16%, #1a2233),
    color-mix(in srgb, var(--pod-accent) 40%, #2a3348),
    color-mix(in srgb, var(--pod-accent) 16%, #1a2233));
  transform: perspective(380px) rotateX(55deg);
  transform-origin: bottom center;
}
.stand-podium-plinth-front {
  position: absolute;
  inset: 0.3rem 0 0;
  display: grid;
  place-items: center;
  border-radius: 0 0 14px 14px;
  border: 1px solid color-mix(in srgb, var(--pod-accent) 30%, transparent);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--pod-accent) 14%, #141c2c), #0a101a 72%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.stand-podium-plinth-front em {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-style: normal;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--pod-accent) 85%, #fff);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.stand-podium-col.is-gold .stand-podium-plinth-front em {
  font-size: 2.9rem;
  color: var(--pod-gold);
}

.stand-board {
  border-radius: 18px;
  border: 1px solid var(--stand-line);
  background: var(--stand-panel);
  overflow: hidden;
}

.stand-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--stand-line);
}

.stand-board-head h2 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stand-board-head span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.stand-table-wrap {
  overflow-x: auto;
}

.stand-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.stand-table th {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--stand-line);
  font-weight: 700;
}

.stand-table th.is-team,
.stand-table td.is-team {
  text-align: left;
  padding-left: 1rem;
}

.stand-table td {
  text-align: center;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.stand-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.stand-row.is-champ {
  background: rgba(226, 185, 59, 0.07);
  box-shadow: inset 3px 0 0 #e2b93b;
}

.stand-row.is-playoff {
  box-shadow: inset 3px 0 0 #2aaf3d;
}

.stand-pos-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.stand-row.is-champ .stand-pos-badge {
  background: linear-gradient(135deg, #e2b93b, #c9981f);
  color: #1a1405;
}

.stand-row.is-playoff .stand-pos-badge {
  background: rgba(42, 175, 61, 0.2);
  color: #4ad463;
}

.stand-team {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.stand-team img,
.stand-team .is-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem;
}

.stand-team strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stand-team em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
}

.stand-table td.is-plus { color: #4ad463; font-weight: 700; }
.stand-table td.is-minus { color: #ef8b6f; font-weight: 700; }

.stand-table td.is-pts strong {
  display: block;
  color: var(--stand-gold);
  font-size: 1.05rem;
}

.stand-pts-bar {
  display: block;
  margin: 0.3rem auto 0;
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.stand-pts-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(42, 175, 61, 0.75), #e2b93b);
}

.stand-form {
  display: inline-flex;
  gap: 0.25rem;
  justify-content: center;
}

.stand-form-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.stand-form-dot.is-w { background: rgba(42, 175, 61, 0.25); color: #4ad463; }
.stand-form-dot.is-d { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.65); }
.stand-form-dot.is-l { background: rgba(227, 93, 93, 0.22); color: #ef8b6f; }

.stand-form-empty {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 980px) {
  .stand-podium {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
    perspective: none;
  }

  .stand-podium-col.is-gold {
    order: -1;
    --pod-lift: 0px;
  }

  .stand-podium-col.is-gold,
  .stand-podium-col.is-silver,
  .stand-podium-col.is-bronze {
    --pod-plinth-h: 3.2rem;
  }

  .stand-legend-note {
    margin-left: 0;
    width: 100%;
  }
}

/* ── Ranking MVP ── */
.mvp-lab {
  --mvp-accent: #2aaf3d;
  --mvp-gold: #e2b93b;
  --mvp-panel: rgba(10, 22, 40, 0.72);
  --mvp-line: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mvp-lab-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mvp-lab-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.mvp-lab-crest {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.mvp-lab-crest.is-fallback {
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, rgba(226, 185, 59, 0.45), rgba(42, 175, 61, 0.25));
  padding: 0;
}

.mvp-lab-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: -0.02em;
}

.mvp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--mvp-line);
  background: var(--mvp-panel);
}

.mvp-filter-field {
  display: grid;
  gap: 0.25rem;
  min-width: 9rem;
}

.mvp-filter-field.is-grow {
  flex: 1 1 14rem;
  min-width: 12rem;
}

.mvp-filter-field span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.mvp-filter-field input,
.mvp-filter-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mvp-line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-height: 42px;
}

.mvp-filter-submit {
  min-height: 42px;
}

.mvp-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}

.mvp-kpi {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--mvp-line);
  background: rgba(255, 255, 255, 0.03);
}

.mvp-kpi span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.mvp-kpi strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.mvp-kpi.is-gold strong {
  color: var(--mvp-gold);
}

.mvp-formula {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 185, 59, 0.22);
  background: linear-gradient(120deg, rgba(226, 185, 59, 0.1), rgba(42, 175, 61, 0.06));
}

.mvp-formula strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mvp-gold);
  margin-bottom: 0.3rem;
}

.mvp-formula p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.mvp-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin-top: 0.25rem;
}

.mvp-podium-card {
  position: relative;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--mvp-line);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(42, 175, 61, 0.12), transparent 60%),
    var(--mvp-panel);
  text-align: center;
  overflow: hidden;
  animation: mvpIn 0.4s ease both;
}

.mvp-podium-card.is-rank-1 {
  transform: translateY(-12px);
  border-color: rgba(226, 185, 59, 0.4);
  background:
    radial-gradient(520px 200px at 50% 0%, rgba(226, 185, 59, 0.18), transparent 55%),
    var(--mvp-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation-delay: 0.05s;
}

.mvp-podium-card.is-rank-2 { animation-delay: 0s; }
.mvp-podium-card.is-rank-3 { animation-delay: 0.1s; }

@keyframes mvpIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mvp-podium-card.is-rank-1 {
  animation-name: mvpInGold;
}

@keyframes mvpInGold {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(-12px); }
}

.mvp-podium-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}

.mvp-podium-card.is-rank-1 .mvp-podium-medal {
  background: linear-gradient(135deg, #e2b93b, #c9981f);
  color: #1a1405;
}

.mvp-podium-card.is-rank-2 .mvp-podium-medal {
  background: linear-gradient(135deg, #c8d0dc, #8e99a8);
  color: #121820;
}

.mvp-podium-card.is-rank-3 .mvp-podium-medal {
  background: linear-gradient(135deg, #d4a26e, #a86a3a);
  color: #1a1008;
}

.mvp-podium-photo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
}

.mvp-podium-card.is-rank-1 .mvp-podium-photo-wrap {
  width: 112px;
  height: 112px;
}

.mvp-podium-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
}

.mvp-podium-photo.is-fallback {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, rgba(42, 175, 61, 0.35), rgba(226, 185, 59, 0.18));
}

.mvp-podium-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: contain;
  background: #0b1524;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 0.15rem;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
}

.mvp-podium-badge.is-fallback {
  color: #fff;
  background: rgba(42, 175, 61, 0.35);
}

.mvp-podium-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.mvp-podium-card.is-rank-1 h2 {
  font-size: 1.2rem;
}

.mvp-podium-card > p {
  margin: 0.3rem 0 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.mvp-podium-score span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.mvp-podium-score strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.85rem;
  color: var(--mvp-gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mvp-podium-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.85rem 0 0.65rem;
}

.mvp-podium-stats span {
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}

.mvp-podium-stats em {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.mvp-podium-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.mvp-podium-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f8f32, #2aaf3d 50%, #e2b93b);
}

.mvp-podium-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mvp-accent);
  text-decoration: none;
}

.mvp-podium-link:hover {
  color: var(--mvp-gold);
}

.mvp-board {
  border-radius: 18px;
  border: 1px solid var(--mvp-line);
  background: var(--mvp-panel);
  overflow: hidden;
}

.mvp-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--mvp-line);
}

.mvp-board-head h2 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mvp-board-head span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.mvp-board-list {
  display: grid;
}

.mvp-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(140px, 1.4fr) minmax(110px, 1fr) minmax(150px, 1.1fr) 5.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.18s ease;
}

.mvp-row:last-child {
  border-bottom: 0;
}

.mvp-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mvp-row.is-top {
  background: rgba(226, 185, 59, 0.04);
}

.mvp-row-rank {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
}

.mvp-row.is-top .mvp-row-rank {
  color: var(--mvp-gold);
}

.mvp-row-player {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.mvp-row-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mvp-row-avatar.is-fallback {
  color: #fff;
}

.mvp-row-player strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvp-row-player em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.mvp-row-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.mvp-row-team img,
.mvp-row-team .is-fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.15rem;
}

.mvp-row-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvp-row-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.mvp-row-metrics b {
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.mvp-row-score {
  text-align: right;
}

.mvp-row-score strong {
  display: block;
  font-size: 1.05rem;
  color: var(--mvp-gold);
  font-variant-numeric: tabular-nums;
}

.mvp-row-bar {
  margin-top: 0.3rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mvp-row-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(42, 175, 61, 0.7), #e2b93b);
}

@media (max-width: 980px) {
  .mvp-podium {
    grid-template-columns: 1fr;
  }

  .mvp-podium-card.is-rank-1 {
    transform: none;
    order: -1;
  }

  .mvp-podium-card.is-rank-1 {
    animation: mvpIn 0.4s ease both;
  }

  .mvp-row {
    grid-template-columns: 2rem 1fr auto;
    grid-template-areas:
      "rank player score"
      "rank team score"
      "rank metrics metrics";
  }

  .mvp-row-rank { grid-area: rank; }
  .mvp-row-player { grid-area: player; }
  .mvp-row-team { grid-area: team; }
  .mvp-row-metrics { grid-area: metrics; }
  .mvp-row-score { grid-area: score; align-self: start; }
}

/* ── Alineaciones tácticas (cancha videjuego) ── */
.tac-lab {
  --tac-accent: #2aaf3d;
  --tac-gold: #e2b93b;
  --tac-panel: rgba(10, 22, 40, 0.75);
  --tac-line: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tac-lab-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tac-lab-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.tac-lab-crest {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tac-lab-crest.is-fallback {
  background: linear-gradient(135deg, rgba(42, 175, 61, 0.4), rgba(226, 185, 59, 0.2));
  padding: 0;
  color: #fff;
}

.tac-lab-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

.tac-equipo-switch label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.tac-equipo-switch select {
  min-width: 12rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tac-line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.tac-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.tac-kpi {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--tac-line);
  background: rgba(255, 255, 255, 0.03);
}

.tac-kpi span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.tac-kpi strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.tac-kpi.is-gold strong { color: var(--tac-gold); }
.tac-kpi.is-prob strong { color: #2aaf3d; }
.tac-kpi.is-prob.is-mid strong { color: var(--tac-gold); }
.tac-kpi.is-prob.is-low strong { color: #f87171; }
.tac-kpi-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.25;
}

.tac-odds {
  margin-top: 0.85rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
.tac-odds[hidden] { display: none !important; }
.tac-odds-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.tac-odds-head strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tac-odds-head span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}
.tac-odds-row {
  display: grid;
  grid-template-columns: 54px 1fr 40px;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.tac-odds-row span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}
.tac-odds-row em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.78rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tac-odds-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.tac-odds-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.28s ease;
}
.tac-odds-row.is-win .tac-odds-track i { background: linear-gradient(90deg, #1f8f32, #2aaf3d); }
.tac-odds-row.is-draw .tac-odds-track i { background: linear-gradient(90deg, #c9a227, #E2B93B); }
.tac-odds-row.is-lose .tac-odds-track i { background: linear-gradient(90deg, #b91c1c, #f87171); }
.tac-odds-row.is-win em { color: #39c94d; }
.tac-odds-row.is-draw em { color: #E2B93B; }
.tac-odds-row.is-lose em { color: #f87171; }
.tac-odds-note {
  margin: 0.45rem 0 0;
  font-size: 0.65rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
}

.tac-grid {
  display: grid;
  grid-template-columns: minmax(200px, 22%) minmax(0, 53%) minmax(210px, 25%);
  gap: 0.9rem;
  align-items: start;
}

.tac-roster,
.tac-dash,
.tac-stage {
  border-radius: 18px;
  border: 1px solid var(--tac-line);
  background: var(--tac-panel);
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.tac-dash {
  z-index: 0;
}

.tac-roster,
.tac-dash {
  padding: 0.85rem;
}

.tac-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.tac-panel-head strong {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tac-panel-head span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.tac-hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.tac-roster-list {
  display: grid;
  gap: 0.4rem;
  max-height: 68vh;
  overflow: auto;
}

.tac-player-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: grab;
  transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.tac-player-card:hover { border-color: rgba(42, 175, 61, 0.35); }
.tac-player-card.is-used { opacity: 0.45; }
.tac-player-card.is-dragging { opacity: 0.35; }

.tac-player-card img,
.tac-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tac-player-meta strong {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tac-player-meta em {
  font-style: normal;
  color: var(--tac-gold);
  margin-right: 0.15rem;
}

.tac-player-meta small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
}

.tac-player-rating {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--tac-gold);
}

.tac-player-card.is-high .tac-player-rating { color: #4ad463; }
.tac-player-card.is-mid .tac-player-rating { color: var(--tac-gold); }
.tac-player-card.is-low .tac-player-rating { color: #ef8b6f; }

.tac-stage { padding: 0.85rem; }

.tac-form {
  min-width: 0;
  width: 100%;
}

.tac-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.tac-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  min-width: 0;
}

.tac-field input,
.tac-field select,
.tac-field textarea {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tac-line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  min-height: 40px;
  width: 100%;
  max-width: 100%;
  font-family: inherit;
}

.tac-toolbar-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0.15rem;
  position: relative;
  z-index: 2;
}

.tac-toolbar-actions .btn-ghost,
.tac-toolbar-actions .btn-primary {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 40px;
  padding: 0.55rem 1rem;
}

.tac-notes { margin-top: 0.75rem; }

.tac-pitch-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tac-pitch {
  position: relative;
  aspect-ratio: 68 / 105;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 18%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 16%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(
      90deg,
      #1f8a34 0,
      #1f8a34 12.5%,
      #237f33 12.5%,
      #237f33 25%
    );
  overflow: hidden;
}

.tac-pitch::before {
  content: "";
  position: absolute;
  inset: 2.2%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.tac-pitch-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tac-pitch-midline {
  position: absolute;
  left: 2.2%;
  right: 2.2%;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.tac-pitch-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.tac-pitch-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  height: 16%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.tac-pitch-box-top { top: 2.2%; border-top: 0; }
.tac-pitch-box-bottom { bottom: 2.2%; border-bottom: 0; }

.tac-pitch-six {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 7%;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.tac-pitch-six-top { top: 2.2%; border-top: 0; }
.tac-pitch-six-bottom { bottom: 2.2%; border-bottom: 0; }

.tac-pitch-spot {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
}

.tac-pitch-spot-mid { top: 50%; margin-top: -3px; }
.tac-pitch-spot-top { top: 12%; }
.tac-pitch-spot-bottom { bottom: 12%; }

.tac-slots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tac-token {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 64px;
  min-height: 64px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.tac-token:hover { transform: translate(-50%, -50%) scale(1.06); }
.tac-token.is-active { filter: drop-shadow(0 0 10px rgba(226, 185, 59, 0.7)); }
.tac-token.is-drop .tac-token-empty,
.tac-token.is-drop .tac-token-photo {
  outline: 2px solid #e2b93b;
}

.tac-token-photo,
.tac-token-empty {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(0, 0, 0, 0.15);
  background: linear-gradient(160deg, #0f1c30, #17304a);
  overflow: hidden;
  position: relative;
}

.tac-token-empty {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  border-style: dashed;
  background: rgba(8, 24, 14, 0.45);
}

.tac-token-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tac-token-photo em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

.tac-token-num {
  position: absolute;
  top: 34px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #0a1628;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 2;
}

.tac-token-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tac-token-rate {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--tac-gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  font-variant-numeric: tabular-nums;
}

.tac-token.is-high .tac-token-photo { border-color: #4ad463; }
.tac-token.is-mid .tac-token-photo { border-color: #e2b93b; }
.tac-token.is-low .tac-token-photo { border-color: #ef8b6f; }
.tac-token.is-high .tac-token-rate { color: #4ad463; }
.tac-token.is-low .tac-token-rate { color: #ef8b6f; }

/* Popup info jugador en cancha */
.tac-player-tip {
  position: fixed;
  z-index: 12000;
  width: min(300px, calc(100vw - 16px));
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(42, 175, 61, 0.16), transparent 55%),
    rgba(8, 16, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tac-player-tip.is-visible {
  opacity: 1;
  transform: none;
}

.tac-player-tip[data-place="top"]::after,
.tac-player-tip[data-place="bottom"]::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(8, 16, 28, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.tac-player-tip[data-place="top"]::after { bottom: -5px; }
.tac-player-tip[data-place="bottom"]::after { top: -5px; }

.tac-tip-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.tac-tip-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
}

.tac-tip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tac-tip-head strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.tac-tip-head em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.tac-tip-score {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #e2b93b;
}

.tac-tip-score.is-high { color: #4ad463; }
.tac-tip-score.is-low { color: #ef8b6f; }

.tac-tip-roles {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.tac-tip-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.tac-tip-cols h4 {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.tac-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.tac-tip-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.76rem;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tac-tip-list.is-strong strong { color: #4ad463; }
.tac-tip-list.is-weak strong { color: #ef8b6f; }

.tac-tip-empty {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.35;
}

.tac-saved {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tac-line);
}

.tac-saved-list {
  display: grid;
  gap: 0.35rem;
}

.tac-saved-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.tac-saved-item:hover,
.tac-saved-item.is-active {
  border-color: rgba(42, 175, 61, 0.35);
  background: rgba(42, 175, 61, 0.1);
}

.tac-saved-item strong { font-size: 0.84rem; }
.tac-saved-item em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.tac-saved-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
}

.tac-line-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.tac-line-card {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--tac-line);
  background: rgba(255, 255, 255, 0.03);
}

.tac-line-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.tac-line-head strong { font-size: 0.84rem; }
.tac-line-nivel {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.tac-line-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tac-line-score em {
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tac-line-card.is-high .tac-line-score em { color: #4ad463; }
.tac-line-card.is-mid .tac-line-score em { color: var(--tac-gold); }
.tac-line-card.is-low .tac-line-score em { color: #ef8b6f; }
.tac-line-card.is-empty .tac-line-score em { color: rgba(255, 255, 255, 0.35); }

.tac-line-score small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.tac-line-bar {
  margin-top: 0.45rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tac-line-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f8f32, #2aaf3d 55%, #e2b93b);
}

.tac-line-xi {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.tac-radar-panel h3,
.tac-xi-summary h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.tac-radar-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.tac-radar { width: min(100%, 220px); height: auto; }
.tac-radar-ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.tac-radar-axis { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.tac-radar-area {
  fill: rgba(42, 175, 61, 0.28);
  stroke: #2aaf3d;
  stroke-width: 2;
}
.tac-radar-dot { fill: #e2b93b; stroke: #0a1628; stroke-width: 1; }
.tac-radar-label {
  fill: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-family: inherit;
}

.tac-xi-summary p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

/* ── DT Virtual · asistente moderno + nebulosa ── */
.tac-lab-top-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tac-coach-open-btn {
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(42, 175, 61, 0.35);
}

.tac-coach-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%);
  padding: 1rem 0.55rem;
  margin: 0;
  border: 1px solid rgba(42, 175, 61, 0.55);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #145a22 0%, #0d2a18 55%, #0a1628 100%);
  color: #f2fff4;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: -8px 10px 28px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, color 0.2s ease, right 0.28s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.tac-coach-tab:hover,
.tac-coach-tab[aria-expanded="true"] {
  background: linear-gradient(180deg, #2aaf3d 0%, #1a6b28 60%, #0e2238 100%);
  color: #fff;
  box-shadow: -10px 12px 32px rgba(42, 175, 61, 0.35);
}
.tac-coach-tab[aria-expanded="true"] {
  right: min(440px, 94vw);
}
.tac-coach-tab-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e2b93b;
  box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.55);
  animation: tacCoachPulse 1.8s ease infinite;
}
@keyframes tacCoachPulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(226, 185, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 185, 59, 0); }
}

.tac-coach-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(3, 8, 16, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.tac-coach-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tac-coach-drawer {
  --coach-ink: #050b14;
  --coach-panel: rgba(8, 16, 28, 0.72);
  --coach-line: rgba(255, 255, 255, 0.08);
  --coach-green: #2aaf3d;
  --coach-gold: #e2b93b;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10060;
  width: min(440px, 94vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, #07101c 0%, #050b14 48%, #081828 100%);
  border-left: 1px solid rgba(42, 175, 61, 0.22);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.55);
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  color: #e8eef6;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--font-body);
}
.tac-coach-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Nebulosa flotante de fondo */
.tac-coach-nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.tac-coach-nebula-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: tacNebulaFloat 14s ease-in-out infinite;
}
.tac-coach-nebula-orb:first-child {
  width: 220px;
  height: 220px;
  top: 8%;
  right: -40px;
  background:
    radial-gradient(circle at 35% 35%, rgba(42, 175, 61, 0.75), transparent 58%),
    radial-gradient(circle at 70% 60%, rgba(226, 185, 59, 0.35), transparent 55%);
}
.tac-coach-nebula-orb.is-2 {
  width: 180px;
  height: 180px;
  bottom: 22%;
  left: -50px;
  background:
    radial-gradient(circle at 40% 40%, rgba(34, 150, 52, 0.45), transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(80, 160, 255, 0.18), transparent 50%);
  animation-duration: 18s;
  animation-delay: -4s;
  opacity: 0.4;
}
.tac-coach-nebula-orb.is-3 {
  width: 140px;
  height: 140px;
  top: 42%;
  right: 18%;
  background: radial-gradient(circle, rgba(226, 185, 59, 0.4), transparent 68%);
  animation-duration: 11s;
  animation-delay: -2s;
  opacity: 0.35;
  filter: blur(28px);
}
.tac-coach-nebula-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(42, 175, 61, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 72% 28%, rgba(226, 185, 59, 0.45), transparent),
    radial-gradient(1px 1px at 88% 70%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 48% 88%, rgba(42, 175, 61, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 12%, rgba(255, 255, 255, 0.22), transparent);
  animation: tacNebulaDust 22s linear infinite;
  opacity: 0.7;
}
@keyframes tacNebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-18px, 22px) scale(1.08); }
  66% { transform: translate(14px, -16px) scale(0.94); }
}
@keyframes tacNebulaDust {
  from { transform: translateY(0); }
  to { transform: translateY(-28px); }
}

.tac-coach-head,
.tac-coach-body,
.tac-coach-composer {
  position: relative;
  z-index: 1;
}

.tac-coach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid var(--coach-line);
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.85), rgba(8, 18, 32, 0.35));
  backdrop-filter: blur(12px);
}
.tac-coach-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.tac-coach-orb-mini {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6dff8a, #2aaf3d 42%, #0d3a1c 72%, #061018 100%);
  box-shadow:
    0 0 0 1px rgba(42, 175, 61, 0.35),
    0 0 24px rgba(42, 175, 61, 0.45),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
  animation: tacOrbPulse 3.2s ease-in-out infinite;
}
.tac-coach-orb-mini span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0.7;
}
@keyframes tacOrbPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(42, 175, 61, 0.35), 0 0 18px rgba(42, 175, 61, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(226, 185, 59, 0.4), 0 0 28px rgba(42, 175, 61, 0.65), inset 0 0 14px rgba(255, 255, 255, 0.2); }
}
.tac-coach-identity-text { min-width: 0; }
.tac-coach-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.tac-coach-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tac-coach-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9dffb0;
  background: rgba(42, 175, 61, 0.14);
  border: 1px solid rgba(42, 175, 61, 0.28);
}
.tac-coach-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2aaf3d;
  box-shadow: 0 0 8px #2aaf3d;
  animation: tacCoachPulse 1.6s ease infinite;
}
.tac-coach-status.is-busy {
  color: #ffe7a0;
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.3);
}
.tac-coach-status.is-busy i {
  background: #e2b93b;
  box-shadow: 0 0 8px #e2b93b;
}
.tac-coach-status.is-ai {
  color: #ffe7a0;
  background: rgba(226, 185, 59, 0.14);
  border-color: rgba(226, 185, 59, 0.35);
}
.tac-coach-status.is-ai i {
  background: #e2b93b;
  box-shadow: 0 0 8px #e2b93b;
}
.tac-coach-status.is-boost {
  color: #b8f5c4;
  background: rgba(42, 175, 61, 0.18);
  border-color: rgba(42, 175, 61, 0.4);
}
.tac-coach-sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}
.tac-coach-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tac-coach-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tac-coach-body {
  flex: 1;
  overflow: auto;
  padding: 1.1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  scroll-behavior: smooth;
}

.tac-coach-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
  animation: tacCoachMsgIn 0.45s ease both;
}
.tac-coach-hero-orb {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 1.1rem;
}
.tac-coach-hero-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7), transparent 42%),
    radial-gradient(circle at 50% 50%, #4dff6e 0%, #2aaf3d 38%, #0c3d1c 68%, #041018 100%);
  box-shadow:
    0 0 40px rgba(42, 175, 61, 0.55),
    0 0 80px rgba(226, 185, 59, 0.18);
  animation: tacHeroFloat 5s ease-in-out infinite;
}
.tac-coach-hero-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(42, 175, 61, 0.35);
  animation: tacHeroRing 4s linear infinite;
}
.tac-coach-hero-ring.is-slow {
  inset: -2px;
  border-color: rgba(226, 185, 59, 0.22);
  animation-duration: 7s;
  animation-direction: reverse;
}
@keyframes tacHeroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}
@keyframes tacHeroRing {
  from { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 1; }
  to { transform: rotate(360deg) scale(1); opacity: 0.7; }
}
.tac-coach-hello {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
  color: #fff;
}
.tac-coach-lead {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}
.tac-coach-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}
.tac-coach-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.tac-coach-chip:hover {
  border-color: rgba(42, 175, 61, 0.45);
  background: rgba(42, 175, 61, 0.12);
  transform: translateY(-1px);
}

.tac-coach-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tac-coach-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.55rem;
  align-items: flex-start;
  animation: tacCoachMsgIn 0.4s ease both;
}
.tac-coach-msg.is-user {
  grid-template-columns: 1fr;
}
.tac-coach-msg.is-user .tac-coach-msg-bubble {
  margin-left: 2rem;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, rgba(42, 175, 61, 0.22), rgba(42, 175, 61, 0.1));
  border-color: rgba(42, 175, 61, 0.3);
}
@keyframes tacCoachMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tac-coach-msg-avatar {
  width: 28px;
  height: 28px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8dff9f, #2aaf3d 50%, #0a2814 100%);
  box-shadow: 0 0 12px rgba(42, 175, 61, 0.45);
  flex-shrink: 0;
}
.tac-coach-msg-bubble {
  padding: 0.75rem 0.9rem;
  border-radius: 4px 16px 16px 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.tac-coach-msg.is-alert .tac-coach-msg-bubble {
  border-color: rgba(226, 185, 59, 0.4);
  background: rgba(226, 185, 59, 0.08);
}
.tac-coach-msg-meta {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 700;
}

.tac-coach-scorecard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.tac-coach-score {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.tac-coach-score span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}
.tac-coach-score strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tac-coach-score.is-suggested strong { color: #4dff6e; }
.tac-coach-score.is-delta {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(42, 175, 61, 0.12), rgba(226, 185, 59, 0.08));
  border-color: rgba(42, 175, 61, 0.22);
}
.tac-coach-score.is-delta strong {
  color: #e2b93b;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
}

.tac-coach-section {
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.tac-coach-section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 800;
}
.tac-coach-section p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.tac-coach-section ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.tac-coach-xi-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}
.tac-coach-xi-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.tac-coach-xi-list em {
  font-style: normal;
  font-weight: 800;
  color: #e2b93b;
  font-size: 0.7rem;
}
.tac-coach-xi-list span {
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tac-coach-xi-list b {
  color: #4dff6e;
  font-variant-numeric: tabular-nums;
}

.tac-coach-typing {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.25rem 0;
}
.tac-coach-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 4px 16px 16px 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.tac-coach-dots {
  display: inline-flex;
  gap: 4px;
}
.tac-coach-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2aaf3d;
  animation: tacCoachDot 1.2s ease-in-out infinite;
}
.tac-coach-dots i:nth-child(2) { animation-delay: 0.15s; background: #6dff8a; }
.tac-coach-dots i:nth-child(3) { animation-delay: 0.3s; background: #e2b93b; }
@keyframes tacCoachDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.tac-coach-error {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.35);
  color: #ffc9c9;
  font-size: 0.84rem;
}

.tac-coach-composer {
  padding: 0.75rem 1rem 0.85rem;
  border-top: 1px solid var(--coach-line);
  background: linear-gradient(0deg, rgba(5, 11, 20, 0.95), rgba(8, 16, 28, 0.72));
  backdrop-filter: blur(14px);
}
.tac-coach-composer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(42, 175, 61, 0.05), 0 12px 32px rgba(0, 0, 0, 0.25);
}
.tac-coach-composer-bar.is-chat {
  gap: 0.55rem;
}
.tac-coach-input-wrap {
  display: block;
  width: 100%;
}
.tac-coach-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  min-height: 2.75rem;
  max-height: 7.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #f4f7fb;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tac-coach-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.tac-coach-input:focus {
  border-color: rgba(42, 175, 61, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 175, 61, 0.18);
  background: rgba(0, 0, 0, 0.38);
}
.tac-coach-composer-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.4;
  min-height: 1.2em;
  margin: 0;
  order: 3;
}
.tac-coach-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}
.tac-coach-quick {
  border-radius: 12px !important;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tac-coach-apply {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.tac-coach-apply:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 185, 59, 0.4);
  color: #fff;
}
.tac-coach-apply:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.tac-coach-send {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  background: linear-gradient(135deg, #2aaf3d, #1f8f32 55%, #178a2c);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(42, 175, 61, 0.35);
  transition: transform 0.15s ease, filter 0.2s ease, opacity 0.2s ease;
}
.tac-coach-send:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tac-coach-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
.tac-coach-disclaimer {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 1200px) {
  .tac-grid {
    grid-template-columns: minmax(180px, 28%) minmax(0, 72%);
  }
  .tac-dash { grid-column: 1 / -1; }
  .tac-line-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .tac-grid { grid-template-columns: 1fr; }
  .tac-toolbar { grid-template-columns: 1fr; }
  .tac-toolbar-actions { grid-column: 1 / -1; }
  .tac-line-list { grid-template-columns: 1fr 1fr; }
  .tac-token { width: 56px; }
  .tac-token-photo,
  .tac-token-empty { width: 46px; height: 46px; }
  .tac-coach-tab[aria-expanded="true"] {
    right: min(100vw, 440px);
  }
  .tac-coach-drawer {
    width: min(100vw, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tac-coach-nebula-orb,
  .tac-coach-nebula-dust,
  .tac-coach-orb-mini,
  .tac-coach-hero-core,
  .tac-coach-hero-ring,
  .tac-coach-tab-pulse,
  .tac-coach-status i,
  .tac-coach-dots i {
    animation: none !important;
  }
}

/* ── Landing CMS (tabs) ── */
.cms-lab {
  --cms-panel: rgba(10, 22, 40, 0.72);
  --cms-line: rgba(255, 255, 255, 0.08);
  --cms-accent: #2aaf3d;
  --cms-gold: #e2b93b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cms-lab-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.cms-lab-title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

.cms-lab-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}
.cms-header-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 185, 59, 0.3);
  background: linear-gradient(120deg, rgba(226, 185, 59, 0.1), rgba(42, 175, 61, 0.06));
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.cms-header-notice:hover {
  border-color: rgba(226, 185, 59, 0.55);
  transform: translateY(-1px);
  background: linear-gradient(120deg, rgba(226, 185, 59, 0.16), rgba(42, 175, 61, 0.1));
}
.cms-header-notice-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e2b93b;
  box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.4);
  animation: cmsNoticeSoft 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.cms-header-notice-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.cms-header-notice-copy strong {
  color: #f3e3a8;
  font-size: 0.74rem;
  font-weight: 800;
}
.cms-header-notice-copy em {
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 600;
}
.cms-header-notice--alerts {
  border-color: rgba(42, 175, 61, 0.35);
  background: linear-gradient(120deg, rgba(42, 175, 61, 0.12), rgba(226, 185, 59, 0.05));
}
.cms-header-notice--alerts:hover {
  border-color: rgba(42, 175, 61, 0.55);
  background: linear-gradient(120deg, rgba(42, 175, 61, 0.18), rgba(226, 185, 59, 0.08));
}
.cms-header-notice--alerts .cms-header-notice-dot {
  background: #2aaf3d;
  box-shadow: 0 0 0 0 rgba(42, 175, 61, 0.4);
}
.cms-header-notice--alerts .cms-header-notice-copy strong {
  color: #9be6a5;
}
.cms-liga-switch select {
  min-width: 14rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0B1220;
  color: #fff;
}

.cms-theme-presets {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.cms-theme-preset {
  display: grid;
  gap: 0.45rem;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .15s ease;
}
.cms-theme-preset:hover {
  border-color: rgba(42,175,61,0.45);
  background: rgba(42,175,61,0.08);
  transform: translateY(-1px);
}
.cms-theme-preset strong {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}
.cms-theme-preset-swatches {
  display: flex;
  gap: 0.3rem;
}
.cms-theme-preset-swatches i {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}
.cms-theme-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--p-ink, #070B12);
  border: 1px solid rgba(255,255,255,0.08);
}
.cms-theme-preview-bar {
  flex: 1;
  min-width: 4rem;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--p-lime, #2aaf3d), var(--p-gold, #E2B93B));
}
.cms-theme-preview-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--p-lime, #2aaf3d);
  color: var(--p-on, #0B1220);
}
.cms-theme-preview-gold {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--p-gold, #E2B93B);
}
.cms-theme-preview-muted {
  font-size: 0.75rem;
  color: var(--p-muted, #B8C0CC);
}
.cms-theme-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cms-theme-field {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
.cms-theme-field-top {
  display: grid;
  gap: 0.15rem;
}
.cms-theme-field-top strong {
  font-size: 0.82rem;
  color: #fff;
}
.cms-theme-field-top em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.35;
}
.cms-theme-field-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cms-theme-field-controls input[type="color"] {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.cms-theme-field-controls input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0B1220;
  color: #fff;
}

.cms-shell {
  display: block;
  min-width: 0;
}

.cms-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid var(--cms-line);
  background: var(--cms-panel);
  overflow-x: auto;
  scrollbar-width: thin;
  position: sticky;
  top: 0.5rem;
  z-index: 8;
  backdrop-filter: blur(10px);
}

.cms-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.65rem 0.95rem;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cms-tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cms-tab.is-active {
  background: rgba(42, 175, 61, 0.16);
  border-color: rgba(42, 175, 61, 0.4);
  color: #fff;
}

.cms-tab.is-spotlight {
  gap: 0.4rem;
  padding-inline: 0.85rem 0.7rem;
  border-color: rgba(226, 185, 59, 0.42);
  background:
    linear-gradient(135deg, rgba(42, 175, 61, 0.2), rgba(226, 185, 59, 0.16));
  box-shadow:
    0 0 0 1px rgba(226, 185, 59, 0.12),
    0 8px 18px rgba(226, 185, 59, 0.1);
  animation: cmsTabSpotlightPulse 2.8s ease-in-out infinite;
}
.cms-tab.is-spotlight strong {
  color: #f0d06a;
  letter-spacing: 0.02em;
}
.cms-tab.is-spotlight:hover {
  border-color: rgba(226, 185, 59, 0.65);
  background:
    linear-gradient(135deg, rgba(42, 175, 61, 0.28), rgba(226, 185, 59, 0.22));
}
.cms-tab.is-spotlight.is-active {
  border-color: rgba(226, 185, 59, 0.75);
  background:
    linear-gradient(135deg, rgba(42, 175, 61, 0.3), rgba(226, 185, 59, 0.28));
  color: #fff;
  animation: none;
}
.cms-tab.is-spotlight.is-active strong {
  color: #fff;
}
.cms-tab-spotlight-ico {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 7px;
  background: rgba(11, 18, 32, 0.35);
  color: #e2b93b;
}
.cms-tab-spotlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  color: #1a1405;
  background: linear-gradient(135deg, #f0d06a, #e2b93b);
  box-shadow: 0 4px 10px rgba(226, 185, 59, 0.28);
}
@keyframes cmsTabSpotlightPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(226, 185, 59, 0.12),
      0 8px 18px rgba(226, 185, 59, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(226, 185, 59, 0.28),
      0 10px 24px rgba(226, 185, 59, 0.22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cms-tab.is-spotlight {
    animation: none;
  }
}

.cms-comunicados-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1405;
  background: linear-gradient(135deg, #f0d06a, #e2b93b);
}

.cms-tab strong {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cms-tab span {
  display: none;
}

.cms-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 185, 59, 0.18);
  background: rgba(7, 11, 18, 0.45);
}

.cms-subtab {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  flex: 1 1 9rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cms-subtab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cms-subtab.is-active {
  background: rgba(226, 185, 59, 0.12);
  border-color: rgba(226, 185, 59, 0.42);
  box-shadow: inset 0 0 0 1px rgba(42, 175, 61, 0.12);
}

.cms-subtab strong {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
}

.cms-subtab span {
  font-size: 0.72rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.5);
}

.cms-subpanel .cms-subtabs {
  margin-top: 0.15rem;
  border-color: rgba(42, 175, 61, 0.22);
  background: rgba(7, 11, 18, 0.35);
}

.cms-subpanel .cms-subtab {
  flex: 1 1 7.5rem;
  padding: 0.55rem 0.75rem;
}

.cms-subpanel .cms-subtab.is-active {
  background: rgba(42, 175, 61, 0.14);
  border-color: rgba(42, 175, 61, 0.4);
  box-shadow: none;
}

.cms-subpanel {
  animation: cmsIn 0.22s ease;
}

.cms-subpanel[hidden] {
  display: none !important;
}

.cms-panels {
  min-width: 0;
}

.cms-panel {
  animation: cmsIn 0.28s ease;
}

.cms-panel[hidden] {
  display: none !important;
}

@keyframes cmsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cms-panel-head {
  margin-bottom: 0.9rem;
}

.cms-panel-head-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cms-panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cms-panel-head p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.cms-card {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--cms-line);
  background: var(--cms-panel);
  margin-bottom: 0.85rem;
}

.cms-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.cms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.cms-card-grid .cms-card {
  margin-bottom: 0;
}

/* Programas · cards del CMS (2 columnas, campos legibles) */
.cms-program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 900px) {
  .cms-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cms-program-card {
  min-width: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--cms-line);
  background: var(--cms-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cms-program-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-program-card-num {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #0b1220;
  background: linear-gradient(145deg, #2aaf3d, #1e8a2f);
  box-shadow: 0 0 0 1px rgba(42, 175, 61, 0.35);
}

.cms-program-card-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
}

.cms-program-card-head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
}

.cms-program-fields {
  display: grid;
  grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr);
  gap: 0.85rem 0.75rem;
  align-items: start;
}

.cms-program-field-icon,
.cms-program-field-meta,
.cms-program-field-full {
  min-width: 0;
}

.cms-program-field-full {
  grid-column: 1 / -1;
}

.cms-program-fields .field > span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cms-program-field-icon input {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cms-program-fields textarea {
  min-height: 5.25rem;
  resize: vertical;
  line-height: 1.45;
}

.cms-program-fields input,
.cms-program-fields textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cms-voice-fields {
  grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 5.5rem);
}

.cms-moments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .cms-moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cms-moments-slot {
  min-width: 0;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.35);
}

.cms-tab.has-alert {
  position: relative;
}

.cms-tab-alert {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(226, 185, 59, 0.92);
  color: #0b1220;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.35);
  animation: cmsNoticeSoft 2.4s ease-in-out infinite;
}

.cms-testimonio-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(226, 185, 59, 0.28);
  background: linear-gradient(120deg, rgba(226, 185, 59, 0.1), rgba(14, 22, 36, 0.35));
  color: #fff;
}
.cms-testimonio-alert-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e2b93b;
  box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.4);
  animation: cmsNoticeSoft 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.cms-testimonio-alert-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.cms-testimonio-alert strong {
  color: #f3e3a8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}
.cms-testimonio-alert span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 600;
}

@keyframes cmsNoticeSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.35); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(226, 185, 59, 0); opacity: 0.85; }
}

@keyframes cmsAlertPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(226, 185, 59, 0.35); }
  50% { opacity: 0.72; box-shadow: 0 0 0 6px rgba(226, 185, 59, 0); }
}

.cms-testimonio-list {
  display: grid;
  gap: 0.75rem;
}

.cms-standings-preview {
  display: grid;
  gap: 0.4rem;
}
.cms-standings-preview-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 11, 18, 0.35);
}
.cms-standings-preview-row em {
  font-style: normal;
  font-weight: 900;
  color: var(--vc-gold, #e2b93b);
}
.cms-standings-preview-row strong {
  color: #fff;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cms-standings-preview-row span {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  font-weight: 700;
}

.cms-comunicados-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .cms-comunicados-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cms-comunicado-card {
  min-width: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--cms-line);
  background: var(--cms-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.cms-comunicado-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cms-comunicado-card-num {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0b1220;
  background: linear-gradient(135deg, #2aaf3d, #e2b93b);
}
.cms-comunicado-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
}
.cms-comunicado-card-head p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.cms-sub-list {
  display: grid;
  gap: 0.55rem;
}
.cms-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 11, 18, 0.35);
}
.cms-sub-row.is-baja {
  opacity: 0.72;
}
.cms-sub-row > div:first-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.cms-sub-row strong {
  color: #fff;
  font-size: 0.9rem;
  word-break: break-all;
}
.cms-sub-row span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}
.cms-sub-row em {
  font-style: normal;
  color: rgba(255,255,255,0.38);
  font-size: 0.72rem;
}
.cms-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cms-testimonio-item {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 18, 0.4);
}

.cms-testimonio-item.is-pending {
  border-color: rgba(226, 185, 59, 0.35);
}

.cms-testimonio-item.is-ok {
  border-color: rgba(42, 175, 61, 0.3);
}

.cms-testimonio-item.is-off {
  opacity: 0.72;
}

.cms-testimonio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.cms-testimonio-meta strong { color: #fff; }
.cms-testimonio-meta span { color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.cms-testimonio-meta time { color: rgba(255,255,255,0.35); font-size: 0.75rem; margin-left: auto; }
.cms-testimonio-stars { color: #e2b93b; font-style: normal; letter-spacing: 0.05em; }
.cms-testimonio-item p {
  margin: 0 0 0.75rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}
.cms-testimonio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.cms-media-field {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 18, 0.45);
  grid-column: 1 / -1;
}
.cms-media-field.is-compact .cms-media-preview {
  width: 6.5rem;
  height: 4.75rem;
}
.cms-media-field.is-compact .cms-media-field-body {
  grid-template-columns: 6.5rem minmax(0, 1fr);
}
.cms-media-field-head {
  display: grid;
  gap: 0.2rem;
}
.cms-media-field-head strong {
  color: #fff;
  font-size: 0.92rem;
}
.cms-media-field-head span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  line-height: 1.4;
}
.cms-media-field-body {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
@media (max-width: 720px) {
  .cms-media-field-body {
    grid-template-columns: 1fr;
  }
}
.cms-media-preview {
  width: 9rem;
  height: 6.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(42, 175, 61, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.cms-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cms-media-preview.is-empty em {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: normal;
}
.cms-media-controls {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.cms-media-controls .field > span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.cms-media-file-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.72;
}
.cms-media-file-hint.is-error {
  color: #f87171;
  opacity: 1;
  font-weight: 600;
}

.cms-help {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.cms-sticky-save {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(42, 175, 61, 0.28);
  background: rgba(8, 18, 30, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.cms-sticky-save strong {
  display: block;
  font-size: 0.9rem;
}

.cms-sticky-save span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.cms-sections-list {
  display: grid;
  gap: 0.55rem;
}

.cms-section-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--cms-line);
  background: var(--cms-panel);
}

.cms-section-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cms-section-order {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(226, 185, 59, 0.14);
  color: var(--cms-gold);
  flex-shrink: 0;
}

.cms-section-meta strong {
  display: block;
  font-size: 0.92rem;
}

.cms-section-meta em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.cms-section-side {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .cms-tabs {
    top: 0.25rem;
  }

  .cms-tab {
    padding: 0.55rem 0.8rem;
  }

  .cms-tab strong {
    font-size: 0.78rem;
  }
}

/* ===== Dashboard por rol ===== */
.dash-lab {
  display: grid;
  gap: 1.25rem;
  --dash-lime: #2aaf3d;
  --dash-gold: #E2B93B;
}
.dash-lab-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.dash-lab-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.04em;
  margin: 0.15rem 0 0;
}
.dash-scope-pill {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(42,175,61,0.3);
  background:
    linear-gradient(145deg, rgba(42,175,61,0.16), rgba(226,185,59,0.06)),
    rgba(10,16,28,0.9);
  max-width: 22rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.dash-scope-pill span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.dash-scope-pill strong { font-size: 0.88rem; line-height: 1.3; color: #fff; }

.dash-kpi-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.dash-kpi {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.05), transparent 42%),
    linear-gradient(180deg, rgba(16,24,40,0.98), rgba(9,14,24,0.96));
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  min-width: 0;
}
.dash-kpi-glow {
  position: absolute;
  inset: auto -20% -45% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,175,61,0.22), transparent 68%);
  pointer-events: none;
}
.dash-kpi.is-live .dash-kpi-glow { background: radial-gradient(circle, rgba(42,175,61,0.28), transparent 68%); }
.dash-kpi.is-pro .dash-kpi-glow { background: radial-gradient(circle, rgba(226,185,59,0.28), transparent 68%); }
.dash-kpi.is-mix .dash-kpi-glow { background: radial-gradient(circle, rgba(56,189,248,0.22), transparent 68%); }
.dash-kpi-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.02em;
}
.dash-kpi-value {
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}
.dash-kpi.is-live .dash-kpi-value { color: #9dffb4; }
.dash-kpi.is-pro .dash-kpi-value { color: #f0d78a; }
.dash-kpi-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: rgba(255,255,255,0.62);
}

.dash-charts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.dash-chart-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 20px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(155deg, rgba(42,175,61,0.08), transparent 38%),
    linear-gradient(180deg, rgba(14,22,36,0.98), rgba(8,12,22,0.96));
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
}
.dash-chart-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dash-lime), var(--dash-gold), transparent);
  opacity: 0.85;
  pointer-events: none;
}
.dash-chart-card .dash-chart-wrap {
  flex: 1 1 auto;
}
@media (max-width: 900px) {
  .dash-charts {
    grid-template-columns: 1fr;
  }
}
.dash-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.dash-chart-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.dash-chart-head p {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.dash-chart-total {
  display: grid;
  justify-items: end;
  gap: 0.05rem;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.dash-chart-total strong {
  font-size: 1.15rem;
  color: #9dffb4;
  line-height: 1;
}
.dash-chart-total span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.dash-chart-wrap {
  position: relative;
  height: 220px;
}
.dash-chart-wrap.is-bar { height: 220px; }
.dash-chart-wrap.is-radar { height: 260px; }
.dash-chart-legend {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 0.4rem 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.dash-chart-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.72rem;
}
.dash-chart-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.dash-chart-legend span {
  flex: 1;
  min-width: 0;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-chart-legend strong {
  color: #fff;
  font-weight: 800;
}

.dash-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.dash-panel {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 18px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), transparent 40%),
    linear-gradient(180deg, rgba(14,22,36,0.96), rgba(9,13,22,0.96));
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.dash-panel-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}
.dash-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dash-gold);
  text-decoration: none;
  white-space: nowrap;
}
.dash-link:hover { text-decoration: underline; }

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.dash-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.dash-list-main { display: grid; gap: 0.15rem; min-width: 0; }
.dash-list-main strong { font-size: 0.86rem; }
.dash-list-meta { font-size: 0.72rem; color: rgba(255,255,255,0.42); }
.dash-list time {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9dffb4;
  white-space: nowrap;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: rgba(42,175,61,0.1);
}

.dash-mvp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.dash-mvp-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  transition: background .15s ease;
}
.dash-mvp-list li:hover { background: rgba(255,255,255,0.03); }
.dash-mvp-rank {
  width: 1.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
}
.dash-mvp-list img,
.dash-mvp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.dash-mvp-avatar {
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(42,175,61,0.25), rgba(226,185,59,0.15));
}
.dash-mvp-meta { min-width: 0; flex: 1; display: grid; gap: 0.18rem; }
.dash-mvp-meta strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-mvp-meta em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.42);
}
.dash-mvp-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 0.1rem;
}
.dash-mvp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-lime), var(--dash-gold));
}
.dash-mvp-score {
  font-weight: 800;
  color: var(--dash-gold);
  font-size: 1rem;
}

.dash-table th,
.dash-table td { white-space: nowrap; }

.dash-player-body {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}
.dash-player-photo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.dash-player-name { display: block; font-size: 1.08rem; margin-bottom: 0.2rem; }
.dash-player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.7rem;
}
.dash-player-stats span {
  display: grid;
  gap: 0.1rem;
  min-width: 3.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.dash-player-stats em {
  font-style: normal;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.42);
}
.dash-player-stats strong { font-size: 1rem; color: #9dffb4; }

.dash-quick-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.dash-quick {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(42,175,61,0.1), rgba(255,255,255,0.02));
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .15s ease, background .18s ease, box-shadow .18s ease;
}
.dash-quick:hover {
  border-color: rgba(42,175,61,0.45);
  background: rgba(42,175,61,0.14);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42,175,61,0.12);
}
.dash-quick strong { font-size: 0.88rem; color: #fff; }
.dash-quick span { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

@media (max-width: 720px) {
  .dash-chart-wrap,
  .dash-chart-wrap.is-bar { height: 210px; }
  .dash-chart-wrap.is-radar { height: 240px; }
  .dash-scope-pill { max-width: none; width: 100%; }
}

/* ===== SaaS Super Admin ===== */
.saas-lab {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: start;
  min-height: 0 !important;
  height: auto !important;
}
.saas-lab-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.saas-lab-title { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: 0.04em; margin: 0.15rem 0 0; }
.saas-lab-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.saas-tabs {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  position: sticky; top: 0.35rem; z-index: 20;
  padding: 0.35rem; border-radius: 14px;
  background: rgba(7, 11, 18, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.saas-tab {
  display: grid; gap: 0.1rem; min-width: 7.5rem;
  padding: 0.55rem 0.85rem; border-radius: 10px;
  color: rgba(255,255,255,0.72); text-decoration: none;
  border: 1px solid transparent; transition: .18s ease;
}
.saas-tab:hover { background: rgba(42,175,61,0.08); color: #fff; }
.saas-tab.is-active {
  background: linear-gradient(180deg, rgba(42,175,61,0.22), rgba(42,175,61,0.08));
  border-color: rgba(42,175,61,0.45); color: #fff;
}
.saas-tab strong { font-size: 0.86rem; }
.saas-tab span { font-size: 0.68rem; color: rgba(255,255,255,0.45); }

.saas-roles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(42,175,61,0.28);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(42,175,61,0.16), transparent 55%),
    linear-gradient(145deg, rgba(18,28,44,0.95), rgba(8,12,20,0.92));
}
.saas-roles-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2aaf3d;
}
.saas-roles-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  color: #fff;
}
.saas-roles-head p {
  margin: 0.3rem 0 0;
  max-width: 46rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.saas-roles-actions { display: flex; gap: 0.5rem; }
.saas-roles-note {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(226,185,59,0.3);
  background: rgba(226,185,59,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.saas-roles-note code {
  color: #E2B93B;
  font-size: 0.76rem;
}
.saas-roles-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.saas-roles-scroll {
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,11,18,0.55);
  -webkit-overflow-scrolling: touch;
}
.saas-roles-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 860px;
  height: auto;
}
.saas-roles-table th,
.saas-roles-table td {
  padding: 0.4rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  vertical-align: middle;
}
.saas-roles-table thead th {
  position: static;
  top: auto;
  z-index: auto;
  background: rgba(14,22,36,0.98);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(42,175,61,0.25);
}
.saas-roles-table th.is-perm,
.saas-roles-table td.is-perm {
  position: static;
  left: auto;
  z-index: auto;
  text-align: left;
  min-width: 200px;
  max-width: 260px;
  background: transparent;
  padding-left: 0.85rem;
}
.saas-roles-table thead th.is-perm {
  z-index: auto;
  background: rgba(14,22,36,0.98);
}
.saas-roles-table td.is-perm {
  background: rgba(10,16,28,0.55);
}
.saas-roles-table td.is-perm strong {
  display: block;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}
.saas-roles-table td.is-perm code {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
}
.saas-roles-group td {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2aaf3d;
  background: rgba(42,175,61,0.08);
  padding: 0.55rem 0.85rem;
}
.saas-roles-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0 auto;
  cursor: pointer;
}
.saas-roles-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.saas-roles-check span {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
  transition: 0.15s ease;
}
.saas-roles-check input:checked + span {
  background: #2aaf3d;
  border-color: #2aaf3d;
  box-shadow: 0 0 0 3px rgba(42,175,61,0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B1220' stroke-width='2.4'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.saas-roles-check input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}
.saas-roles-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,22,36,0.9);
}
.saas-roles-foot p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  max-width: 36rem;
}
.saas-roles-foot code { color: #E2B93B; font-size: 0.72rem; }

.saas-shell {
  display: block;
}
.saas-panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  height: auto !important;
  min-height: 0 !important;
}
.saas-panel.is-active {
  height: auto !important;
  min-height: 0 !important;
  align-self: start;
}
.saas-panel--roles {
  gap: 0.7rem;
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 0 !important;
}
/* Anula cualquier max-height residual que deje hueco */
.saas-panel--roles .saas-roles-scroll {
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
}
/* Evita que el área principal invente scroll vacío solo en Roles */
.crm-content:has(.saas-panel--roles) {
  flex-grow: 0;
  padding-bottom: 1.25rem;
}
.saas-split {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}
@media (max-width: 1100px) {
  .saas-split { grid-template-columns: 1fr; }
}

.saas-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(42,175,61,0.06) 0%, transparent 42%),
    linear-gradient(180deg, rgba(16,24,40,0.98), rgba(9,14,24,0.96));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.saas-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #2aaf3d, #E2B93B 55%, transparent);
  opacity: 0.85;
  pointer-events: none;
}
.saas-card-stretch { min-width: 0; }
.saas-card-head { margin-bottom: 1rem; }
.saas-card-head h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  font-weight: 800;
}
.saas-card-head p { margin: 0.3rem 0 0; color: rgba(255,255,255,0.52); font-size: 0.82rem; line-height: 1.4; }

/* ===== Formularios Centro SaaS ===== */
.saas-split > * { min-width: 0; }
.saas-split.is-equal {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 1100px) {
  .saas-split.is-equal { grid-template-columns: 1fr; }
}

.saas-form {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 1rem;
}

.saas-form .form-grid,
.saas-form-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .saas-form .form-grid.cols-2,
  .saas-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.saas-form .form-grid > *,
.saas-form-grid > * {
  min-width: 0;
  max-width: 100%;
}
.saas-form .span-2,
.saas-form-grid .span-2,
.saas-form label.span-2 {
  grid-column: 1 / -1;
}

/* Campos unificados (label.field y label > span) */
.saas-form label.field,
.saas-form-grid > label,
.saas-form > label:not(.saas-check):not(.saas-mod-chip) {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.saas-form-grid > label > span,
.saas-form > label:not(.saas-check) > span:first-child {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.saas-form-grid > label > span em,
.saas-form label span em {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.55;
}

.saas-form label.field input,
.saas-form label.field select,
.saas-form label.field textarea,
.saas-form-grid > label input,
.saas-form-grid > label select,
.saas-form-grid > label textarea,
.saas-form > label:not(.saas-check) input:not([type="checkbox"]):not([type="radio"]),
.saas-form > label:not(.saas-check) select,
.saas-form > label:not(.saas-check) textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1524, #0a111c) !important;
  color: #fff !important;
  color-scheme: dark;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.saas-form label.field select,
.saas-form-grid > label select {
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.55) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.55) 50%, transparent 50%),
    linear-gradient(180deg, #0d1524, #0a111c) !important;
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px),
    0 0 !important;
  background-size: 5px 5px, 5px 5px, 100% 100% !important;
  background-repeat: no-repeat !important;
  padding-right: 2.1rem;
}
.saas-form label.field input:hover,
.saas-form label.field select:hover,
.saas-form label.field textarea:hover,
.saas-form-grid > label input:hover,
.saas-form-grid > label select:hover,
.saas-form-grid > label textarea:hover {
  border-color: rgba(42,175,61,0.28);
}
.saas-form label.field input:focus,
.saas-form label.field select:focus,
.saas-form label.field textarea:focus,
.saas-form-grid > label input:focus,
.saas-form-grid > label select:focus,
.saas-form-grid > label textarea:focus,
.saas-form > label:not(.saas-check) input:focus,
.saas-form > label:not(.saas-check) select:focus,
.saas-form > label:not(.saas-check) textarea:focus {
  outline: none;
  border-color: rgba(42,175,61,0.55);
  box-shadow:
    0 0 0 3px rgba(42,175,61,0.16),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.saas-form label.field textarea,
.saas-form-grid > label textarea,
.saas-form > label textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
  font-weight: 500;
}
.saas-form input.is-mono,
.saas-form .is-mono {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace !important;
  letter-spacing: 0.02em !important;
}

/* File inputs */
.saas-form input[type="file"] {
  padding: 0.65rem 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  border-style: dashed !important;
  border-color: rgba(42,175,61,0.28) !important;
  background: rgba(42,175,61,0.05) !important;
}
.saas-form input[type="file"]:hover {
  border-color: rgba(42,175,61,0.5) !important;
  background: rgba(42,175,61,0.09) !important;
}
.saas-file-preview {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.4rem;
}
.saas-file-preview img {
  max-width: 160px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.saas-file-preview a {
  font-size: 0.75rem;
  color: #9dffb4;
  text-decoration: none;
}
.saas-file-preview a:hover { text-decoration: underline; }

/* Checkboxes / toggles */
.saas-form label.field.check-field,
.saas-form .check-field {
  flex-direction: row !important;
  align-items: center;
  align-self: end;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  min-height: 3.05rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.saas-form label.field.check-field:hover {
  border-color: rgba(42,175,61,0.35);
  background: rgba(42,175,61,0.07);
}
.saas-form label.field.check-field input[type="checkbox"],
.saas-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  accent-color: #2aaf3d;
  cursor: pointer;
}

.saas-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(42,175,61,0.28);
  background:
    linear-gradient(135deg, rgba(42,175,61,0.12), rgba(226,185,59,0.05));
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.saas-check:hover {
  border-color: rgba(42,175,61,0.5);
  box-shadow: 0 6px 20px rgba(42,175,61,0.1);
}
.saas-check strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}
.saas-check em,
.saas-check .saas-check-hint {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
}
.saas-check.is-compact {
  padding: 0.55rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}

.saas-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.saas-form-actions--end {
  justify-content: flex-end;
}
.saas-form-actions .btn-primary,
.saas-form-actions .btn-ghost {
  min-height: 2.55rem;
  padding-inline: 1.15rem;
  border-radius: 12px;
  font-weight: 750;
}
.saas-form-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}
.saas-form-hint code {
  font-size: 0.74rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #E2B93B;
}

.saas-alert {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(42,175,61,0.35);
  background:
    linear-gradient(135deg, rgba(42,175,61,0.14), rgba(14,22,36,0.55));
}
.saas-alert strong {
  display: block;
  font-size: 1rem;
}
.saas-alert p {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}
.saas-alert.is-warn {
  border-color: rgba(226,185,59,0.4);
  background: linear-gradient(135deg, rgba(226,185,59,0.14), rgba(14,22,36,0.55));
}
.saas-alert-link {
  color: #E2B93B;
  font-weight: 800;
  text-decoration: none;
}
.saas-alert-link:hover { text-decoration: underline; }
.saas-form-grid.is-single {
  grid-template-columns: 1fr !important;
}
.saas-card-head-gap {
  margin-top: 1.25rem;
}
.saas-alert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.saas-status-chip {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
}
.saas-status-chip.is-ok {
  border-color: rgba(42,175,61,0.45);
  background: rgba(42,175,61,0.15);
  color: #9dffb4;
}

.saas-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.saas-inline-form select,
.saas-pago-action select,
.saas-pago-action input {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0B1220;
  color: #fff;
  color-scheme: dark;
}
.saas-pago-action {
  display: grid;
  gap: 0.4rem;
  min-width: 200px;
}
.saas-pago-action .btn-primary {
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 10px;
}

.saas-aside-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
  margin: 0 0 1rem;
  line-height: 1.45;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.saas-aside-steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.7);
}

.saas-kpi-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.saas-kpi {
  border-radius: 14px; padding: 0.9rem 1rem;
  background: rgba(14,22,36,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; gap: 0.2rem;
}
.saas-kpi span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,0.5); }
.saas-kpi strong { font-size: 1.55rem; line-height: 1.1; }
.saas-kpi em { font-style: normal; font-size: 0.75rem; color: rgba(255,255,255,0.42); }
.saas-kpi.is-trial { border-color: rgba(226,185,59,0.35); }
.saas-kpi.is-ok { border-color: rgba(42,175,61,0.4); }
.saas-kpi.is-warn { border-color: rgba(245,158,11,0.4); }
.saas-kpi.is-gold { border-color: rgba(226,185,59,0.55); background: linear-gradient(160deg, rgba(226,185,59,0.12), rgba(14,22,36,0.9)); }

.saas-pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.saas-pill.is-trial { color: #E2B93B; border-color: rgba(226,185,59,0.45); background: rgba(226,185,59,0.1); }
.saas-pill.is-ok { color: #2aaf3d; border-color: rgba(42,175,61,0.45); background: rgba(42,175,61,0.1); }
.saas-pill.is-warn { color: #f59e0b; border-color: rgba(245,158,11,0.45); background: rgba(245,158,11,0.1); }
.saas-pill.is-danger { color: #f87171; border-color: rgba(248,113,113,0.45); background: rgba(248,113,113,0.1); }
.saas-pill.is-muted { color: rgba(255,255,255,0.55); }

.saas-meta { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 0.15rem; }
.saas-clients-table tr.is-inactive { opacity: 0.55; }

.saas-mods {
  margin: 0.15rem 0 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}
.saas-mods legend {
  padding: 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.saas-mods-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}
.saas-mod-chip {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .15s ease;
}
.saas-mod-chip:hover {
  border-color: rgba(42,175,61,0.35);
  background: rgba(42,175,61,0.08);
}
.saas-mod-chip:has(input:checked) {
  border-color: rgba(42,175,61,0.5);
  background: rgba(42,175,61,0.12);
  box-shadow: 0 0 0 1px rgba(42,175,61,0.12);
}
.saas-mod-chip input {
  margin-top: 0.2rem;
  accent-color: #2aaf3d;
  width: 1.05rem;
  height: 1.05rem;
}
.saas-mod-chip strong { display: block; font-size: 0.86rem; color: #fff; text-transform: none; letter-spacing: 0; }
.saas-mod-chip em { display: block; font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 0.15rem; line-height: 1.35; }

.saas-toggle-form { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }

.saas-plans-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.saas-plan-card {
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background:
    linear-gradient(160deg, rgba(42,175,61,0.06), transparent 50%),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  display: grid;
  gap: 0.4rem;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.saas-plan-card:hover {
  border-color: rgba(42,175,61,0.35);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.saas-plan-card.is-featured {
  border-color: rgba(42,175,61,0.5);
  box-shadow: 0 0 0 1px rgba(42,175,61,0.15);
}
.saas-plan-card.is-off { opacity: 0.55; }
.saas-plan-card header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.saas-plan-card header span { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; text-transform: uppercase; }
.saas-plan-price { margin: 0; font-size: 1.25rem; font-weight: 800; color: #9dffb4; }
.saas-plan-price em { font-style: normal; font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.45); }

.saas-card > .saas-check { margin: 0.1rem 0 0.95rem; }
.saas-pago-cell {
  min-width: 220px;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.saas-pago-cell .btn-ghost { justify-self: start; }

.saas-purge {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.saas-purge .field { margin: 0; min-width: 10rem; }
.saas-purge .field select {
  width: 100%;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0B1220;
  color: #fff;
}
.saas-log-filters { margin: 0.75rem 0 1rem; }

/* Banner visible para admin_liga / dirigente */
.saas-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem;
  margin-bottom: 1rem; padding: 0.7rem 0.95rem;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(14,22,36,0.85);
}
.saas-banner-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.86rem; }
.saas-banner-pill {
  display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  background: rgba(255,255,255,0.08);
}
.saas-banner-date { font-style: normal; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.saas-banner--ok { border-color: rgba(42,175,61,0.4); }
.saas-banner--ok .saas-banner-pill { color: #2aaf3d; background: rgba(42,175,61,0.12); }
.saas-banner--trial { border-color: rgba(226,185,59,0.45); }
.saas-banner--trial .saas-banner-pill { color: #E2B93B; background: rgba(226,185,59,0.12); }
.saas-banner--warn { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.08); }
.saas-banner--warn .saas-banner-pill { color: #f59e0b; background: rgba(245,158,11,0.14); }
.saas-banner--danger { border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.08); }
.saas-banner--danger .saas-banner-pill { color: #f87171; background: rgba(248,113,113,0.14); }

@media (max-width: 720px) {
  .saas-tabs { top: 0; }
  .saas-tab { min-width: auto; padding: 0.5rem 0.7rem; }
  .saas-tab span { display: none; }
}

.saas-card-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}

/* Auditoría visual (timeline por sesión) */
.audit-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}
.audit-empty strong { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
.audit-empty p { margin: 0; color: rgba(255,255,255,0.5); font-size: 0.88rem; }

.audit-feed {
  display: grid;
  gap: 1rem;
}

.audit-story {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(165deg, rgba(18,28,44,0.95), rgba(10,15,26,0.92));
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.audit-story.is-alert {
  border-color: rgba(239,68,68,0.35);
  box-shadow: 0 0 0 1px rgba(239,68,68,0.12), 0 12px 28px rgba(0,0,0,0.25);
}

.audit-story-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(42,175,61,0.14), transparent 55%);
}
.audit-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, #2aaf3d, #1a6f28);
}
.audit-story-who strong { display: block; font-size: 1rem; }
.audit-story-who span { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.audit-story-meta {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem;
}
.audit-chip {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.55rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(42,175,61,0.14);
  color: #2aaf3d;
  border: 1px solid rgba(42,175,61,0.28);
}
.audit-chip.is-soft {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.1);
}
.audit-chip.is-link {
  text-decoration: none;
  background: rgba(226,185,59,0.12);
  color: #E2B93B;
  border-color: rgba(226,185,59,0.3);
}
.audit-chip.is-link:hover { background: rgba(226,185,59,0.2); }

.audit-story-range {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.7rem; align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.audit-ip {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  color: rgba(255,255,255,0.65);
}

.audit-timeline {
  list-style: none;
  margin: 0;
  padding: 1rem 1rem 1.1rem 1.35rem;
  display: grid;
  gap: 0.85rem;
  position: relative;
}
.audit-timeline::before {
  content: '';
  position: absolute;
  left: 1.85rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(42,175,61,0.45), rgba(255,255,255,0.08));
}

.audit-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  position: relative;
}
.audit-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800;
  z-index: 1;
  background: #122018;
  border: 2px solid #2aaf3d;
  color: #2aaf3d;
}
.audit-step.is-warning .audit-dot {
  border-color: #f59e0b; color: #f59e0b; background: #1a1508;
}
.audit-step.is-error .audit-dot,
.audit-step.is-security .audit-dot {
  border-color: #ef4444; color: #ef4444; background: #1a0c0c;
}

.audit-step-card {
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.audit-step-top {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start;
}
.audit-step-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.audit-step-msg {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}
.audit-step-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}
.audit-step-tags {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-top: 0.55rem;
}
.audit-tag {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.15rem 0.45rem; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
}
.audit-tag.is-path {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: rgba(226,185,59,0.9);
  background: rgba(226,185,59,0.08);
}
.audit-step-detail {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}
.audit-more {
  margin-top: 0.55rem;
  border: 0;
  background: transparent;
  color: #2aaf3d;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.audit-more:hover { text-decoration: underline; }
.audit-more-panel {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.audit-more-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.audit-more-grid h5 {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.audit-more-grid p { margin: 0 0 0.25rem; font-size: 0.8rem; }
.audit-ctx-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.25rem;
}
.audit-ctx-list li {
  display: grid; grid-template-columns: 7rem 1fr; gap: 0.35rem;
  font-size: 0.75rem;
}
.audit-ctx-list span { color: rgba(255,255,255,0.45); }
.audit-ctx-list strong { word-break: break-word; }

@media (max-width: 900px) {
  .audit-story-head { grid-template-columns: auto 1fr; }
  .audit-story-meta { grid-column: 1 / -1; justify-content: flex-start; }
  .audit-more-grid { grid-template-columns: 1fr; }
  .audit-ip { margin-left: 0; width: 100%; }
}

.saas-logs-table code.saas-ip {
  font-size: 0.75rem; color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04); padding: 0.15rem 0.4rem; border-radius: 6px;
}

/* ===== Ficha 3D Lab ===== */
.f3d-lab { display: grid; gap: 1.1rem; }
.f3d-lab-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.f3d-lab-title { font-size: clamp(2.1rem, 4vw, 3rem); margin: 0.1rem 0 0; letter-spacing: 0.04em; }
.f3d-lab-meta {
  display: grid; place-items: end; padding: 0.65rem 0.9rem;
  border-radius: 12px; border: 1px solid rgba(42,175,61,0.35);
  background: rgba(42,175,61,0.08);
}
.f3d-lab-meta strong { font-size: 1.5rem; line-height: 1; color: #2aaf3d; }
.f3d-lab-meta span { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: .06em; }

.f3d-hero {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .f3d-hero { grid-template-columns: 1fr; }
}
.f3d-hero-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 0.85rem; align-items: center;
  padding: 0.85rem; border-radius: 16px; text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(14,22,36,0.95), rgba(10,15,26,0.9));
  transition: transform .2s ease, border-color .2s ease;
}
.f3d-hero-card:hover { transform: translateY(-3px); border-color: rgba(42,175,61,0.45); }
.f3d-hero-card.is-rank-1 { border-color: rgba(226,185,59,0.45); }
.f3d-hero-visual {
  position: relative; width: 110px; height: 110px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.f3d-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.f3d-hero-fallback, .f3d-card-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-weight: 800; font-size: 1.6rem; color: rgba(255,255,255,0.55);
  background: linear-gradient(160deg, rgba(42,175,61,0.25), rgba(14,22,36,0.9));
}
.f3d-hero-dorsal {
  position: absolute; left: 0.4rem; bottom: 0.35rem;
  font-style: normal; font-weight: 800; font-size: 0.78rem;
  padding: 0.15rem 0.4rem; border-radius: 999px;
  background: rgba(7,11,18,0.75); color: #E2B93B;
}
.f3d-hero-body { display: grid; gap: 0.2rem; min-width: 0; }
.f3d-hero-body strong { font-size: 1.05rem; }
.f3d-hero-body span, .f3d-hero-body em { color: rgba(255,255,255,0.5); font-size: 0.8rem; font-style: normal; }
.f3d-hero-score { margin-top: 0.35rem; display: flex; align-items: baseline; gap: 0.35rem; }
.f3d-hero-score b { font-size: 1.35rem; color: #E2B93B; }
.f3d-hero-score small { color: rgba(255,255,255,0.45); font-size: 0.7rem; letter-spacing: .05em; }

.f3d-pos {
  display: inline-flex; width: fit-content;
  padding: 0.12rem 0.45rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #2aaf3d; background: rgba(42,175,61,0.12); border: 1px solid rgba(42,175,61,0.3);
}

.f3d-filters {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: end;
  padding: 0.75rem; border-radius: 14px;
  background: rgba(14,22,36,0.85); border: 1px solid rgba(255,255,255,0.08);
}
.f3d-filter { display: grid; gap: 0.25rem; min-width: 140px; }
.f3d-filter.is-grow { flex: 1 1 220px; }
.f3d-filter span { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.f3d-filter input, .f3d-filter select {
  width: 100%; min-width: 0; padding: 0.55rem 0.7rem; border-radius: 10px;
  background: #0B1220 !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.14) !important;
}

.f3d-empty {
  padding: 2rem; text-align: center; border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.12); color: rgba(255,255,255,0.5);
}

.f3d-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.f3d-card {
  display: grid; gap: 0; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,22,36,0.92);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.f3d-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42,175,61,0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.f3d-card-media {
  position: relative; aspect-ratio: 1 / 1.05;
  background: linear-gradient(180deg, #0E1624, #12301a);
}
.f3d-card-media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.f3d-card-dorsal {
  position: absolute; left: 0.55rem; top: 0.55rem;
  padding: 0.2rem 0.5rem; border-radius: 999px; font-weight: 800; font-size: 0.78rem;
  background: rgba(7,11,18,0.75); color: #E2B93B;
}
.f3d-card-crest {
  position: absolute; right: 0.55rem; top: 0.55rem;
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2); background: #0B1220;
}
.f3d-card-ring {
  position: absolute; right: 0.55rem; bottom: 0.55rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(#0B1220 58%, transparent 59%),
    conic-gradient(#2aaf3d calc(var(--p) * 1%), rgba(255,255,255,0.12) 0);
}
.f3d-card-ring b { font-size: 0.78rem; color: #fff; }
.f3d-card-body { padding: 0.85rem 0.9rem 0.55rem; display: grid; gap: 0.2rem; }
.f3d-card-body strong { font-size: 0.98rem; }
.f3d-card-body em { font-style: normal; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.f3d-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-top: 0.45rem;
}
.f3d-card-stats span {
  display: grid; gap: 0.05rem; text-align: center; font-size: 0.68rem; color: rgba(255,255,255,0.45);
  padding: 0.35rem 0.2rem; border-radius: 8px; background: rgba(255,255,255,0.03);
}
.f3d-card-stats b { color: #fff; font-size: 0.88rem; }
.f3d-card-cta {
  display: block; padding: 0.65rem 0.9rem; text-align: center;
  font-size: 0.78rem; font-weight: 700; color: #2aaf3d;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(42,175,61,0.06);
}

/* Detail stage — ficha 3D cinematic UI (visor 3D intacto) */
.f3d-stage-page {
  --kit-primary: #2aaf3d;
  --kit-secondary: #0B1220;
  --f3d-gold: #E2B93B;
  --f3d-ink: #071018;
  position: relative;
  display: grid;
  gap: 1rem;
  isolation: isolate;
}
.f3d-ambient {
  pointer-events: none;
  position: absolute;
  inset: -1.5rem -0.5rem auto;
  height: 42rem;
  z-index: 0;
  overflow: hidden;
}
.f3d-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: f3d-orb-drift 12s ease-in-out infinite alternate;
}
.f3d-ambient-orb.is-a {
  width: 22rem; height: 22rem; left: -4rem; top: 1rem;
  background: color-mix(in srgb, var(--kit-primary) 55%, transparent);
}
.f3d-ambient-orb.is-b {
  width: 18rem; height: 18rem; right: 4%; top: 8rem;
  background: color-mix(in srgb, var(--f3d-gold) 40%, transparent);
  animation-delay: -4s;
}
.f3d-ambient-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.55;
}
@keyframes f3d-orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, 24px, 0) scale(1.08); }
}

.f3d-stage-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(135deg, rgba(14,22,36,0.92), rgba(7,11,18,0.78)),
    color-mix(in srgb, var(--kit-primary) 8%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
}
.f3d-stage-brand { min-width: 0; text-align: center; }
.f3d-stage-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--kit-primary) 85%, #fff);
}
.f3d-stage-title {
  margin: 0.15rem 0 0;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f3d-back {
  color: rgba(255,255,255,0.72); text-decoration: none; font-weight: 700; font-size: 0.84rem;
  min-height: 42px; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0 0.7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.22);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.f3d-back:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--kit-primary) 55%, transparent);
  transform: translateX(-2px);
}
.f3d-stage-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }

.f3d-stage-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 310px);
  align-items: stretch;
}
.f3d-stage-layout.is-solo { grid-template-columns: 1fr; }
.f3d-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.f3d-viewport {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, color-mix(in srgb, var(--kit-primary) 28%, transparent), transparent 62%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(7,11,18,0.95), #05080e 70%),
    #05080e;
  height: min(560px, 62vh);
  min-height: 440px;
  max-height: 620px;
  width: 100%;
  box-shadow:
    inset 0 -36px 70px rgba(0,0,0,0.45),
    0 22px 50px rgba(0,0,0,0.38),
    0 0 0 1px color-mix(in srgb, var(--kit-primary) 18%, transparent);
  animation: f3d-stage-in 0.55s ease both;
}
@keyframes f3d-stage-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.f3d-viewport-glow {
  pointer-events: none; position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--kit-primary) 28%, transparent), transparent 38%),
    radial-gradient(circle at 78% 62%, color-mix(in srgb, var(--f3d-gold) 18%, transparent), transparent 32%),
    radial-gradient(circle at 50% 88%, color-mix(in srgb, var(--kit-primary) 12%, transparent), transparent 40%);
  z-index: 0;
}
.f3d-viewport-frame {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 2;
}
.f3d-viewport-frame i {
  position: absolute;
  width: 28px; height: 28px;
  border: 2px solid color-mix(in srgb, var(--kit-primary) 75%, #fff);
  opacity: 0.85;
}
.f3d-viewport-frame .is-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.f3d-viewport-frame .is-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.f3d-viewport-frame .is-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.f3d-viewport-frame .is-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.f3d-viewport-scan {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255,0.035) 48%,
    transparent 52%
  );
  background-size: 100% 220%;
  animation: f3d-scan 7.5s linear infinite;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}
@keyframes f3d-scan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}
#player3d-canvas {
  position: absolute; z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  touch-action: none;
  border-radius: 0;
}

.f3d-live-badge {
  position: absolute; z-index: 3;
  top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7,11,18,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}
.f3d-live-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--kit-primary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--kit-primary) 55%, transparent);
  animation: f3d-pulse 1.6s ease-out infinite;
}
@keyframes f3d-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kit-primary) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.f3d-rating-float {
  position: absolute; z-index: 3;
  top: 0.85rem; right: 0.85rem;
  width: 78px; height: 78px;
}
.f3d-rating-float svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.f3d-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 7;
}
.f3d-ring-fg {
  fill: none;
  stroke: var(--f3d-gold);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--f3d-gold) 45%, transparent));
}
.f3d-rating-float-copy {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
}
.f3d-rating-float-copy strong {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.35rem; line-height: 1; color: #fff; font-weight: 400;
}
.f3d-rating-float-copy span {
  font-size: 0.58rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); font-weight: 800;
}

.f3d-nameplate {
  position: absolute; z-index: 3;
  left: auto; right: 0.95rem; bottom: 0.85rem;
  max-width: min(48%, 380px);
  display: flex; align-items: center; justify-content: space-between; gap: 0.55rem;
  padding: 0.65rem 0.8rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(7,11,18,0.9), rgba(14,22,36,0.72));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.f3d-nameplate-main { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.f3d-nameplate-main > div { min-width: 0; }
.f3d-pos {
  display: inline-block;
  margin-bottom: 0.12rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04140a;
  background: var(--kit-primary);
}
.f3d-nameplate-main strong {
  display: block; font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f3d-nameplate-main em {
  display: block; font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f3d-nameplate-crest {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--kit-primary) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kit-primary) 16%, transparent);
}
.f3d-nameplate-dorsal {
  display: grid; place-items: center; min-width: 52px; flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif; line-height: 1;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.f3d-nameplate-dorsal span { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.f3d-nameplate-dorsal b { font-size: 1.7rem; color: var(--f3d-gold); font-weight: 400; }

.f3d-controls {
  position: absolute; z-index: 3;
  left: 0.95rem; right: auto; bottom: 0.85rem;
  max-width: 48%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
}
.f3d-ctrl {
  border: 1px solid rgba(255,255,255,0.14); background: rgba(11,18,32,0.88);
  color: #fff; border-radius: 999px; padding: 0.4rem 0.8rem;
  font-size: 0.72rem; font-weight: 700; cursor: pointer;
  min-height: 36px;
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}
.f3d-ctrl:hover { transform: translateY(-1px); }
.f3d-ctrl[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--kit-primary) 55%, transparent);
  color: var(--kit-primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kit-primary) 25%, transparent);
}
.f3d-ctrl.is-off { opacity: 0.65; }
.f3d-ctrl-hint { display: none; }

/* Stats debajo del visor */
.f3d-stats {
  display: grid;
  gap: 0.9rem;
  animation: f3d-stage-in 0.6s ease 0.06s both;
}
.f3d-hero-strip {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(145deg, rgba(18,28,44,0.95), rgba(8,12,20,0.9)),
    color-mix(in srgb, var(--kit-primary) 7%, transparent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.f3d-stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}
.f3d-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.f3d-panel-head h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.f3d-panel-head span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
}

.f3d-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  position: sticky;
  top: 0.85rem;
  align-self: stretch;
}

.f3d-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1rem;
}
.f3d-profile-photo {
  width: 72px; height: 72px; border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--kit-primary) 18%, transparent);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--kit-primary) 45%, transparent);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.f3d-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.f3d-profile-copy { min-width: 0; }
.f3d-profile-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.f3d-profile-copy h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: #fff;
  line-height: 1.15;
}
.f3d-profile-apto {
  margin: 0.3rem 0 0;
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--f3d-gold);
  background: rgba(226,185,59,0.12);
  border: 1px solid rgba(226,185,59,0.28);
}
.f3d-profile-score {
  text-align: right;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(226,185,59,0.28);
}
.f3d-profile-score strong {
  display: block;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem;
  color: var(--f3d-gold);
  line-height: 1;
  font-weight: 400;
}
.f3d-profile-score span { font-size: 0.68rem; color: rgba(255,255,255,0.5); }

.f3d-radar-wrap, .f3d-meters {
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(18,28,44,0.96), rgba(8,12,20,0.92));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.f3d-radar-wrap canvas { display: block; width: 100%; height: auto; max-width: 260px; margin: 0 auto; }

.f3d-meter { display: grid; gap: 0.28rem; margin-bottom: 0.65rem; }
.f3d-meter:last-child { margin-bottom: 0; }
.f3d-meter-top { display: flex; justify-content: space-between; font-size: 0.82rem; }
.f3d-meter-track {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden;
}
.f3d-meter-track i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--kit-primary), var(--f3d-gold));
  box-shadow: 0 0 12px color-mix(in srgb, var(--kit-primary) 35%, transparent);
}

.f3d-match-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.f3d-match-grid--inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.f3d-match-grid article {
  position: relative;
  padding: 0.7rem 0.45rem; border-radius: 14px; text-align: center;
  background: rgba(7,11,18,0.55); border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.f3d-match-grid article::before {
  content: '';
  position: absolute; inset: auto 0 0; height: 3px;
  background: var(--kit-primary);
  opacity: 0.85;
}
.f3d-match-grid .is-goal::before { background: var(--kit-primary); }
.f3d-match-grid .is-ast::before { background: #38bdf8; }
.f3d-match-grid .is-yel::before { background: var(--f3d-gold); }
.f3d-match-grid .is-red::before { background: #ef4444; }
.f3d-match-grid b { display: block; font-size: 1.25rem; color: #fff; font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; }
.f3d-match-grid span { font-size: 0.68rem; color: rgba(255,255,255,0.45); }

.f3d-role-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.f3d-role-kpis article {
  padding: 0.85rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(18,28,44,0.96), rgba(8,12,20,0.92));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transition: transform .2s ease, border-color .2s ease;
}
.f3d-role-kpis article:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--kit-primary) 40%, transparent);
}
.f3d-role-kpis span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 0.3rem;
}
.f3d-role-kpis strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.15;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
}
.f3d-role-kpis .is-apto strong {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--f3d-gold);
}

.f3d-dossier {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.15rem;
  animation: f3d-stage-in 0.65s ease 0.1s both;
}
.f3d-dossier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--kit-primary) 35%, transparent);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, color-mix(in srgb, var(--kit-primary) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 0%, color-mix(in srgb, var(--f3d-gold) 12%, transparent), transparent 50%),
    linear-gradient(145deg, rgba(14,22,36,0.96), rgba(7,11,18,0.92));
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.f3d-dossier-head-copy { min-width: 0; flex: 1 1 16rem; }
.f3d-dossier-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--kit-primary) 90%, #fff);
}
.f3d-dossier-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: #fff;
  line-height: 1.2;
}
.f3d-dossier-head p {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.45;
  max-width: 48rem;
}
.f3d-prio {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0B1220;
  background: linear-gradient(135deg, var(--f3d-gold), #f0d078);
  box-shadow: 0 8px 20px rgba(226,185,59,0.28);
}
.f3d-alerts {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(239,68,68,0.35);
  background:
    linear-gradient(135deg, rgba(127,29,29,0.28), rgba(14,22,36,0.85));
}
.f3d-alerts strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #fca5a5;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.f3d-alerts ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.28rem;
}
.f3d-alerts li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
}
.f3d-dossier-grid,
.f3d-plans,
.f3d-dossier-split {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.f3d-dossier-split {
  grid-template-columns: 1fr 1fr;
}
.f3d-card {
  position: relative;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(18,28,44,0.96), rgba(8,12,20,0.92));
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 8.5rem;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}
.f3d-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0.7;
}
.f3d-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--kit-primary) 35%, transparent);
}
.f3d-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.f3d-card h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.f3d-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #04140a;
  background: var(--kit-primary);
}
.f3d-chip.is-risk { background: #f87171; color: #2a0a0a; }
.f3d-chip.is-gold { background: var(--f3d-gold); color: #1a1405; }
.f3d-chip.is-sky { background: #38bdf8; color: #062033; }
.f3d-chip.is-lilac { background: #c4b5fd; color: #1e1238; }
.f3d-chip.is-mute {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}
.f3d-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.4rem;
}
.f3d-card li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
}
.f3d-card li.is-empty {
  list-style: none;
  margin-left: -1rem;
  color: rgba(255,255,255,0.4);
}
.f3d-card.is-pro { border-color: rgba(42,175,61,0.32); }
.f3d-card.is-pro h3 { color: #2aaf3d; }
.f3d-card.is-risk { border-color: rgba(239,68,68,0.28); }
.f3d-card.is-risk h3 { color: #f87171; }
.f3d-card.is-plan { border-color: rgba(226,185,59,0.32); }
.f3d-card.is-plan h3 { color: #E2B93B; }
.f3d-card.is-diet { border-color: rgba(56,189,248,0.28); }
.f3d-card.is-diet h3 { color: #38bdf8; }
.f3d-card.is-rec { border-color: rgba(167,139,250,0.28); }
.f3d-card.is-rec h3 { color: #c4b5fd; }
.f3d-card.is-med { border-color: rgba(248,113,113,0.22); }
.f3d-bio-list {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.f3d-bio-list > div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.45rem;
  font-size: 0.78rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.f3d-bio-list > div:last-child { border-bottom: 0; }
.f3d-bio-list dt { color: rgba(255,255,255,0.42); }
.f3d-bio-list dd { margin: 0; color: #fff; word-break: break-word; }
.f3d-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.9rem;
}
.f3d-advice-list { padding-left: 1rem; }
.f3d-hist { display: grid; gap: 0.45rem; }
.f3d-hist-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem;
}
.f3d-hist-row em {
  font-style: normal;
  color: rgba(255,255,255,0.5);
}
.f3d-hist-row strong { color: var(--f3d-gold); font-family: 'Bebas Neue', Impact, sans-serif; font-size: 1rem; font-weight: 400; }
.f3d-empty {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
}

@media (max-width: 1100px) {
  .f3d-stage-top {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .f3d-stage-brand { text-align: left; }
  .f3d-stage-actions { justify-content: flex-start; }
  .f3d-dossier-grid,
  .f3d-plans {
    grid-template-columns: 1fr;
  }
  .f3d-dossier-split {
    grid-template-columns: 1fr;
  }
  .f3d-role-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f3d-cap-grid {
    grid-template-columns: 1fr;
  }
  .f3d-profile {
    grid-template-columns: auto 1fr;
  }
  .f3d-profile-score {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
  }
}

.f3d-roster {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: min(760px, calc(100vh - 6.5rem));
  max-height: calc(100vh - 5rem);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42,175,61,0.22);
  background:
    linear-gradient(180deg, rgba(20,36,28,0.95) 0%, rgba(14,22,36,0.96) 28%, rgba(11,18,32,0.98) 100%);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.f3d-roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(42,175,61,0.22), transparent 55%),
    rgba(7,11,18,0.35);
}
.f3d-roster-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2aaf3d;
}
.f3d-roster-head h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.f3d-roster-count {
  flex-shrink: 0;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  color: #0B1220;
  background: linear-gradient(145deg, #E2B93B, #c9a032);
  box-shadow: 0 6px 16px rgba(226,185,59,0.28);
}
.f3d-roster-list {
  display: grid;
  gap: 0.25rem;
  padding: 0.55rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(42,175,61,0.45) transparent;
}
.f3d-roster-list::-webkit-scrollbar { width: 6px; }
.f3d-roster-list::-webkit-scrollbar-thumb {
  background: rgba(42,175,61,0.4); border-radius: 999px;
}
.f3d-roster-item {
  display: grid;
  grid-template-columns: 1.85rem 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.45rem;
  min-height: 0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.f3d-roster-item:hover {
  background: rgba(42,175,61,0.1);
  border-color: rgba(42,175,61,0.28);
  transform: translateX(2px);
}
.f3d-roster-item.is-active {
  background: linear-gradient(90deg, rgba(42,175,61,0.22), rgba(42,175,61,0.06));
  border-color: rgba(42,175,61,0.45);
  box-shadow: inset 3px 0 0 #2aaf3d;
}
.f3d-roster-dorsal {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: rgba(226,185,59,0.9);
  text-align: center;
  line-height: 1;
}
.f3d-roster-item img,
.f3d-roster-item .is-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.1);
}
.f3d-roster-item.is-active img,
.f3d-roster-item.is-active .is-fallback {
  border-color: rgba(42,175,61,0.65);
}
.f3d-roster-item .is-fallback {
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(42,175,61,0.15);
  color: #fff;
}
.f3d-roster-meta { min-width: 0; }
.f3d-roster-meta strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.f3d-roster-meta em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  line-height: 1.15;
  color: rgba(255,255,255,0.45);
}
.f3d-roster-now {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2aaf3d;
  background: rgba(42,175,61,0.15);
  border: 1px solid rgba(42,175,61,0.35);
  border-radius: 999px;
  padding: 0.12rem 0.35rem;
  white-space: nowrap;
}
.f3d-roster-go {
  color: rgba(255,255,255,0.28);
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}
.f3d-roster-item:hover .f3d-roster-go {
  color: #2aaf3d;
  transform: translateX(2px);
}

@media (max-width: 1024px) {
  .f3d-stage-layout {
    grid-template-columns: 1fr;
  }
  .f3d-side {
    position: static;
    max-height: none;
    height: auto;
  }
  .f3d-roster {
    min-height: 420px;
    max-height: min(70vh, 640px);
  }
  .f3d-viewport {
    max-height: none;
    min-height: clamp(440px, 58vh, 600px);
    height: clamp(440px, 58vh, 600px);
  }
  .f3d-rating-float {
    width: 68px;
    height: 68px;
  }
  .f3d-match-grid--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #player3d-canvas {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .f3d-nameplate {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 3.4rem;
    max-width: none;
  }
  .f3d-controls {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.75rem;
    max-width: none;
  }
  .f3d-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .f3d-stage-page { gap: 0.65rem; margin: 0 -0.15rem; }
  .f3d-stage-top { gap: 0.5rem; }
  .f3d-stage-actions { width: 100%; }
  .f3d-stage-actions .btn-ghost,
  .f3d-stage-actions .btn-primary {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    flex: 1 1 auto;
    text-align: center;
  }
  .f3d-viewport {
    border-radius: 16px;
    max-height: none;
    min-height: min(68vh, 560px);
    height: min(68vh, 560px);
  }
  #player3d-canvas {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .f3d-nameplate {
    top: 0.65rem;
    bottom: auto;
    left: 0.65rem;
    right: 0.65rem;
    max-width: none;
    padding: 0.55rem 0.7rem;
  }
  .f3d-nameplate-main { gap: 0.5rem; }
  .f3d-nameplate-main strong { font-size: 0.92rem; }
  .f3d-nameplate-main em { font-size: 0.72rem; }
  .f3d-nameplate-crest { width: 32px; height: 32px; }
  .f3d-nameplate-dorsal { min-width: 42px; }
  .f3d-nameplate-dorsal b { font-size: 1.4rem; }
  .f3d-nameplate-dorsal span { font-size: 0.7rem; }
  .f3d-pos { font-size: 0.65rem; padding: 0.1rem 0.4rem; }
  .f3d-controls {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }
  .f3d-ctrl { min-height: 36px; padding: 0.35rem 0.7rem; }
  .f3d-stats-grid { grid-template-columns: 1fr; }
  .f3d-profile {
    grid-template-columns: auto 1fr;
  }
  .f3d-match-grid--inline {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f3d-roster-list {
    grid-template-columns: 1fr;
  }
  .f3d-profile-photo { width: 56px; height: 56px; }
}

@media (max-width: 420px) {
  .f3d-viewport {
    min-height: 58vh;
    height: 58vh;
    max-height: none;
  }
  .f3d-nameplate {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.45rem 0.55rem;
  }
  .f3d-nameplate-crest { width: 28px; height: 28px; }
  .f3d-nameplate-main strong { font-size: 0.86rem; }
  .f3d-roster {
    min-height: 360px;
    max-height: 58vh;
  }
}

/* ── Comunicaciones masivas ── */
.com-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.15rem;
  align-items: start;
}
.com-panel {
  background: linear-gradient(165deg, rgba(18, 28, 44, 0.95), rgba(10, 16, 28, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.com-composer-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.com-composer-head p {
  margin: 0.35rem 0 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}
.com-setup-hint {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(226, 185, 59, 0.35);
  background: rgba(226, 185, 59, 0.08);
  color: rgba(255, 236, 180, 0.92);
  font-size: 0.78rem;
  line-height: 1.45;
}
.com-setup-hint code {
  font-size: 0.74rem;
  color: #E2B93B;
}
.com-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.com-alcance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.com-alcance-locked {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2aaf3d;
}
.com-chip-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  user-select: none;
}
.com-chip-check input {
  accent-color: #2aaf3d;
}
.com-chip-check:has(input:checked) {
  border-color: rgba(42, 175, 61, 0.55);
  background: rgba(42, 175, 61, 0.12);
  color: #fff;
}
.com-chip-check.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.com-tipos {
  margin: 0;
  padding: 0;
  border: 0;
}
.com-tipos legend {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.45rem;
}
.com-tipos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.com-modo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.com-personas-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.com-personas-help {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.com-personas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.com-personas-q {
  flex: 1 1 160px;
  min-width: 0;
  height: 2.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0 0.75rem;
  font-size: 0.85rem;
}
.com-personas-list {
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.35rem;
}
.com-personas-group {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.4rem 0.55rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 185, 59, 0.9);
  background: rgba(10, 16, 28, 0.96);
}
.com-persona-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
}
.com-persona-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.com-persona-row:has(input:checked) {
  background: rgba(42, 175, 61, 0.12);
}
.com-persona-row input {
  margin-top: 0.2rem;
  accent-color: #2aaf3d;
}
.com-persona-row.is-nocontact {
  opacity: 0.55;
}
.com-persona-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.com-persona-body strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}
.com-persona-body em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(42, 175, 61, 0.95);
}
.com-persona-body small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.com-personas-meta {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.com-canales {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.com-canal {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.com-canal input { margin-top: 0.2rem; accent-color: #2aaf3d; }
.com-canal strong { display: block; color: #fff; font-size: 0.88rem; }
.com-canal em { display: block; font-style: normal; font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.15rem; }
.com-canal.is-wa:has(input:checked) {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
}
.com-upload-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}
.com-upload-preview {
  margin-top: 0.65rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 180px;
}
.com-upload-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.com-preview-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(42, 175, 61, 0.08);
  border: 1px solid rgba(42, 175, 61, 0.22);
}
.com-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}
.com-preview-stats strong { color: #fff; font-size: 1rem; margin-right: 0.2rem; }
.com-actions { display: flex; justify-content: flex-end; }
.com-side { display: flex; flex-direction: column; gap: 1rem; }
.com-empty {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.com-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 320px;
  overflow: auto;
}
.com-history-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.com-history-item:hover {
  border-color: rgba(42, 175, 61, 0.4);
  background: rgba(42, 175, 61, 0.08);
}
.com-history-item strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
}
.com-history-item span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}
.com-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
.com-badge-enviado { background: rgba(42, 175, 61, 0.2); color: #7dffa0; }
.com-badge-parcial { background: rgba(226, 185, 59, 0.2); color: #f0d27a; }
.com-badge-fallido { background: rgba(220, 60, 60, 0.2); color: #ffb0b0; }
.com-wa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.com-wa-card {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
}
.com-wa-card strong { display: block; color: #fff; font-size: 0.95rem; }
.com-wa-card span, .com-wa-card em {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}
.com-wa-progress {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 980px) {
  .com-grid { grid-template-columns: 1fr; }
  .com-canales { grid-template-columns: 1fr; }
}

/* ── Manual del sistema ── */
.man-page {
  --man-line: rgba(255, 255, 255, 0.1);
  --man-green: #2aaf3d;
  --man-gold: #E2B93B;
  --man-ink: #061018;
  --man-panel: rgba(12, 20, 34, 0.94);
  margin: -0.25rem 0 1.5rem;
}
.man-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1rem;
  min-height: clamp(240px, 32vh, 340px);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--man-line);
  background: var(--man-ink);
  isolation: isolate;
}
.man-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(42, 175, 61, 0.42), transparent 55%),
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(226, 185, 59, 0.22), transparent 50%),
    radial-gradient(circle at 55% 40%, rgba(56, 189, 248, 0.08), transparent 40%),
    linear-gradient(145deg, #050d16 0%, #0d1a2c 45%, #081420 100%);
}
.man-hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  mask-image: linear-gradient(180deg, #000 25%, transparent 92%);
  pointer-events: none;
  animation: manMeshDrift 28s linear infinite;
}
@keyframes manMeshDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-42px, -42px, 0); }
}
.man-hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 760px;
}
.man-brand {
  margin: 0;
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: clamp(2.75rem, 7vw, 4.2rem);
  letter-spacing: 0.045em;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}
.man-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}
.man-sub {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.56);
  max-width: 40rem;
}
.man-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.95rem;
}
.man-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.man-hero-meta strong {
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.man-search {
  position: relative;
  display: block;
  margin-top: 1.1rem;
  max-width: 460px;
}
.man-search-ico {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  pointer-events: none;
}
.man-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.8rem 1rem 0.8rem 2.65rem;
  background: rgba(0, 0, 0, 0.38);
  color: #f4f7fb;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.man-search input::placeholder { color: rgba(255, 255, 255, 0.38); }
.man-search input:focus {
  border-color: rgba(42, 175, 61, 0.55);
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 0 0 3px rgba(42, 175, 61, 0.18);
}

.man-role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.95rem;
}
.man-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.man-filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
.man-filter.is-active {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(135deg, #2aaf3d, #39c94d);
  box-shadow: 0 6px 18px rgba(42, 175, 61, 0.28);
}
.man-filter:active { transform: scale(0.97); }

.man-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}
.man-jump-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 28, 44, 0.9), rgba(10, 16, 28, 0.88));
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.man-jump-pill:hover {
  color: #fff;
  border-color: rgba(42, 175, 61, 0.45);
  transform: translateY(-1px);
}

.man-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.man-toc {
  position: sticky;
  top: 0.85rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 0.95rem 0.8rem;
  border-radius: 18px;
  border: 1px solid var(--man-line);
  background:
    linear-gradient(180deg, rgba(42, 175, 61, 0.06), transparent 28%),
    linear-gradient(165deg, rgba(16, 24, 38, 0.97), rgba(8, 14, 24, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
}
.man-toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.25rem 0.15rem;
}
.man-toc-nav { display: flex; flex-direction: column; gap: 0.95rem; }
.man-toc-label {
  display: block;
  margin-bottom: 0.4rem;
  padding-left: 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 185, 59, 0.75);
}
.man-toc-link {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.man-toc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 0.75rem;
}
.man-toc-link.is-active {
  color: #fff;
  background: rgba(42, 175, 61, 0.16);
  box-shadow: inset 2px 0 0 var(--man-green);
}

.man-content { min-width: 0; }
.man-block {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}
.man-block-head {
  margin-bottom: 1rem;
  padding: 0.15rem 0 0.9rem;
  border-bottom: 1px solid var(--man-line);
  position: relative;
}
.man-block-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--man-green), var(--man-gold));
}
.man-block-kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--man-green);
}
.man-block-head h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.man-block-head p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  max-width: 40rem;
}

.man-articles {
  display: grid;
  gap: 0.9rem;
}
.man-article {
  position: relative;
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--man-line);
  background:
    linear-gradient(145deg, rgba(42, 175, 61, 0.07), transparent 42%),
    linear-gradient(165deg, rgba(18, 28, 44, 0.94), rgba(8, 14, 24, 0.96));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.man-article::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--man-green), transparent 70%);
  opacity: 0.85;
}
.man-article:hover {
  border-color: rgba(42, 175, 61, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.man-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.man-reveal.is-in {
  opacity: 1;
  transform: none;
}
.man-article-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.man-article-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.man-article-ico {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, rgba(42, 175, 61, 0.35), rgba(42, 175, 61, 0.12));
  border: 1px solid rgba(42, 175, 61, 0.35);
  box-shadow: 0 8px 18px rgba(42, 175, 61, 0.15);
}
.man-article-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}
.man-article-top h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.man-go {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  color: #061018;
  background: linear-gradient(135deg, #2aaf3d, #39c94d);
  box-shadow: 0 8px 18px rgba(42, 175, 61, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.man-go:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.man-summary {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}
.man-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.man-role {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 185, 59, 0.32);
  color: #f0d27a;
  background: rgba(226, 185, 59, 0.1);
}
.man-steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.man-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  line-height: 1.5;
}
.man-step-n {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: #061018;
  background: linear-gradient(145deg, #E2B93B, #c9a230);
  box-shadow: 0 4px 12px rgba(226, 185, 59, 0.25);
}
.man-tips {
  margin: 1rem 0 0;
  padding: 0.8rem 0.95rem;
  list-style: none;
  border-radius: 14px;
  background: rgba(42, 175, 61, 0.08);
  border: 1px solid rgba(42, 175, 61, 0.22);
}
.man-tips li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.man-tips li + li { margin-top: 0.45rem; }
.man-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--man-green);
  box-shadow: 0 0 0 3px rgba(42, 175, 61, 0.18);
}
.man-empty {
  margin: 1.5rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
  padding: 2rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.man-footnote {
  margin: 1.75rem 0 0.5rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 960px) {
  .man-layout { grid-template-columns: 1fr; }
  .man-toc {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
  }
  .man-toc-toggle { display: flex; }
  .man-toc-nav {
    display: none;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--man-line);
  }
  .man-toc-nav.is-open { display: flex; }
  .man-jump {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .man-jump::-webkit-scrollbar { display: none; }
  .man-jump-pill { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .man-reveal { opacity: 1; transform: none; transition: none; }
  .man-hero-mesh { animation: none; }
}

/* ── Acerca de nosotros / pagos ── */
.nos-page {
  --nos-green: #2aaf3d;
  --nos-gold: #E2B93B;
  --nos-line: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}
.nos-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(42, 175, 61, 0.35);
  background:
    linear-gradient(120deg, rgba(42, 175, 61, 0.14), rgba(42, 175, 61, 0.05));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.nos-admin-bar strong {
  display: block;
  color: #9dffb4;
  font-size: 0.9rem;
}
.nos-admin-bar span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
  max-width: 42rem;
}
.nos-admin-bar em {
  font-style: normal;
  color: #dfffe6;
  font-weight: 700;
}
.nos-admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.nos-admin-chip {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
}
.nos-admin-chip.is-ok {
  color: #9dffb4;
  border-color: rgba(42, 175, 61, 0.4);
  background: rgba(42, 175, 61, 0.12);
}
.nos-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.nos-admin-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  color: #061018;
  background: linear-gradient(135deg, #2aaf3d, #39c94d);
  box-shadow: 0 8px 18px rgba(42, 175, 61, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.nos-admin-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.nos-admin-btn.is-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.nos-admin-btn.is-ghost:hover {
  border-color: rgba(42, 175, 61, 0.45);
  background: rgba(42, 175, 61, 0.12);
  filter: none;
}
.nos-empty-state .nos-btn-primary {
  margin-top: 0.95rem;
}

.nos-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: clamp(250px, 34vh, 360px);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--nos-line);
  margin-bottom: 1rem;
  background: #050d16;
  isolation: isolate;
}
.nos-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 80% at 0% 100%, rgba(42, 175, 61, 0.4), transparent 55%),
    radial-gradient(ellipse 55% 55% at 100% 0%, rgba(226, 185, 59, 0.2), transparent 50%),
    radial-gradient(circle at 60% 45%, rgba(56, 189, 248, 0.07), transparent 42%),
    linear-gradient(150deg, #050d16 0%, #0e1a2c 48%, #081420 100%);
}
.nos-hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.38;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  animation: nosMeshDrift 30s linear infinite;
  pointer-events: none;
}
.nos-hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 175, 61, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: nosGlowPulse 6s ease-in-out infinite;
}
@keyframes nosMeshDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-44px, -44px, 0); }
}
@keyframes nosGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.nos-hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem 1.55rem;
  max-width: 700px;
}
.nos-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.nos-logo-fallback {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  background: rgba(42, 175, 61, 0.12);
  border: 1px solid rgba(42, 175, 61, 0.3);
}
.nos-brand {
  margin: 0;
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.3rem);
  letter-spacing: 0.045em;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.nos-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
}
.nos-sub {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  max-width: 38rem;
}
.nos-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.95rem;
}
.nos-hero-meta span {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.nos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
.nos-btn-primary,
.nos-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.nos-btn-primary {
  color: #061018;
  background: linear-gradient(135deg, #2aaf3d, #39c94d);
  box-shadow: 0 10px 24px rgba(42, 175, 61, 0.3);
}
.nos-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.nos-btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.nos-btn-ghost:hover {
  border-color: rgba(42, 175, 61, 0.45);
  background: rgba(42, 175, 61, 0.12);
}

.nos-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.nos-jump-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(18, 28, 44, 0.9), rgba(10, 16, 28, 0.88));
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.nos-jump-pill:hover {
  color: #fff;
  border-color: rgba(42, 175, 61, 0.45);
  transform: translateY(-1px);
}

.nos-section {
  margin-bottom: 1.75rem;
  scroll-margin-top: 1rem;
}
.nos-section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--nos-line);
  position: relative;
}
.nos-section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 68px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nos-green), var(--nos-gold));
}
.nos-kicker {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nos-green);
}
.nos-section-head h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.nos-section-head p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  max-width: 36rem;
}

.nos-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.nos-feature {
  position: relative;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--nos-line);
  background:
    linear-gradient(145deg, rgba(42, 175, 61, 0.1), transparent 45%),
    linear-gradient(165deg, rgba(18, 28, 44, 0.96), rgba(8, 14, 24, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.nos-feature.is-gold {
  background:
    linear-gradient(145deg, rgba(226, 185, 59, 0.12), transparent 45%),
    linear-gradient(165deg, rgba(18, 28, 44, 0.96), rgba(8, 14, 24, 0.96));
}
.nos-feature::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--nos-green), transparent 75%);
}
.nos-feature.is-gold::before {
  background: linear-gradient(180deg, var(--nos-gold), transparent 75%);
}
.nos-feature-ico {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, rgba(42, 175, 61, 0.35), rgba(42, 175, 61, 0.1));
  border: 1px solid rgba(42, 175, 61, 0.35);
}
.nos-feature.is-gold .nos-feature-ico {
  background: linear-gradient(145deg, rgba(226, 185, 59, 0.35), rgba(226, 185, 59, 0.1));
  border-color: rgba(226, 185, 59, 0.4);
  color: #f0d27a;
}
.nos-feature-ico svg { width: 1.2rem; height: 1.2rem; }
.nos-feature h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.nos-feature p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.64);
}

.nos-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.nos-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--nos-line);
  background:
    linear-gradient(160deg, rgba(18, 28, 44, 0.95), rgba(8, 14, 24, 0.96));
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
a.nos-contact-card:hover {
  border-color: rgba(42, 175, 61, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.nos-contact-ico {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 0.35rem;
  color: #9dffb4;
  background: rgba(42, 175, 61, 0.12);
  border: 1px solid rgba(42, 175, 61, 0.28);
}
.nos-contact-ico svg { width: 1.05rem; height: 1.05rem; }
.nos-contact-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.nos-contact-card strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
  line-height: 1.35;
}

.nos-tech-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.nos-tech-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 108px;
  padding: 1.05rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(42, 175, 61, 0.22);
  background:
    linear-gradient(145deg, rgba(42, 175, 61, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(18, 28, 44, 0.96), rgba(8, 14, 24, 0.96));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nos-tech-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 175, 61, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}
.nos-tech-ico {
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #9dffb4;
  background: rgba(42, 175, 61, 0.14);
  border: 1px solid rgba(42, 175, 61, 0.32);
}
.nos-tech-ico svg { width: 1.15rem; height: 1.15rem; }
.nos-tech-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.nos-tech-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 185, 59, 0.9);
}
.nos-tech-body strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

/* legacy chip (por si queda referencia) */
.nos-tech-chip { display: none; }

.nos-empty-state,
.nos-empty-inline {
  padding: 1.5rem 1.2rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  margin-bottom: 1.25rem;
}
.nos-empty-state strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}
.nos-empty-state p,
.nos-empty-inline p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.nos-muted { color: rgba(255, 255, 255, 0.42) !important; }
.nos-mono { font-family: ui-monospace, monospace; letter-spacing: 0.04em; color: #f0d27a !important; }

.nos-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--nos-i, 0) * 40ms);
}
.nos-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nos-identity-grid,
  .nos-contact-grid,
  .nos-tech-grid { grid-template-columns: 1fr; }
  .nos-jump {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .nos-jump::-webkit-scrollbar { display: none; }
  .nos-jump-pill { flex: 0 0 auto; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .nos-contact-grid,
  .nos-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .nos-hero-mesh,
  .nos-hero-glow { animation: none; }
  .nos-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Paginación CRM ── */
.crm-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.15rem 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.crm-pager-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.crm-pager-meta strong { color: #fff; font-weight: 800; }
.crm-pager-hint {
  color: rgba(42, 175, 61, 0.85);
  font-weight: 650;
}
.crm-pager-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.crm-pager-size {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.crm-pager-size select {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
}
.crm-pager-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.crm-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 750;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.crm-pager-btn:hover {
  color: #fff;
  border-color: rgba(42, 175, 61, 0.45);
  background: rgba(42, 175, 61, 0.12);
}
.crm-pager-btn.is-active {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(135deg, #2aaf3d, #39c94d);
}
.crm-pager-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.crm-pager-ellipsis {
  color: rgba(255, 255, 255, 0.35);
  padding: 0 0.2rem;
  font-weight: 700;
}
@media (max-width: 700px) {
  .crm-pager { flex-direction: column; align-items: stretch; }
  .crm-pager-controls { justify-content: space-between; }
}

/* Legacy nos-pay leftovers (safe no-ops if unused) */
.nos-pay { display: none; }

/* ── Pasarela LigaPlus Pay ── */
.pgw {
  margin-top: 0.25rem;
}
.pgw-shell {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(42, 175, 61, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(226, 185, 59, 0.12), transparent 45%),
    linear-gradient(165deg, #0d1524 0%, #0a101c 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pgw-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.pgw-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pgw-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2aaf3d, #1a7a2a);
  box-shadow: 0 8px 20px rgba(42, 175, 61, 0.35);
}
.pgw-brand strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  font-weight: 800;
}
.pgw-brand em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.1rem;
}
.pgw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pgw-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.pgw-steps li span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
}
.pgw-steps li.is-on {
  color: #dfffe6;
  border-color: rgba(42, 175, 61, 0.4);
  background: rgba(42, 175, 61, 0.12);
}
.pgw-steps li.is-on span {
  background: #2aaf3d;
  color: #fff;
}

.pgw-ok {
  margin: 1rem 1.15rem 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(42, 175, 61, 0.14);
  border: 1px solid rgba(42, 175, 61, 0.35);
}
.pgw-ok strong { display: block; color: #9dffb4; font-size: 0.92rem; }
.pgw-ok p { margin: 0.25rem 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

.pgw-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "methods methods"
    "panels checkout";
  gap: 1rem;
  padding: 1.15rem;
}
.pgw-methods {
  grid-area: methods;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.pgw-method {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.pgw-method:hover:not(:disabled) {
  border-color: rgba(42, 175, 61, 0.35);
  transform: translateY(-1px);
}
.pgw-method.is-active {
  border-color: rgba(42, 175, 61, 0.55);
  background: linear-gradient(135deg, rgba(42, 175, 61, 0.18), rgba(42, 175, 61, 0.06));
  box-shadow: 0 0 0 1px rgba(42, 175, 61, 0.15), 0 12px 28px rgba(0, 0, 0, 0.2);
}
.pgw-method.is-disabled,
.pgw-method:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pgw-method-ico {
  display: inline-flex;
  color: #2aaf3d;
  margin-bottom: 0.45rem;
}
.pgw-method strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 800;
}
.pgw-method em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
}

.pgw-panels { grid-area: panels; min-width: 0; }
.pgw-panel {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  min-height: 100%;
}
.pgw-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.pgw-panel-head p {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}
.pgw-bank-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pgw-bank-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pgw-bank-row span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.pgw-bank-row strong {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
}
.pgw-bank-row.is-account {
  border-color: rgba(226, 185, 59, 0.35);
  background: rgba(226, 185, 59, 0.08);
}
.pgw-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pgw-account .nos-mono {
  color: #f0d27a !important;
  font-size: 1.05rem;
}
.pgw-copy {
  border: 1px solid rgba(226, 185, 59, 0.4);
  border-radius: 9px;
  padding: 0.35rem 0.7rem;
  background: rgba(226, 185, 59, 0.12);
  color: #f0d27a;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.pgw-copy.is-done {
  border-color: rgba(42, 175, 61, 0.5);
  background: rgba(42, 175, 61, 0.15);
  color: #9dffb4;
}
.pgw-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}
.pgw-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.pgw-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.25rem;
}
.pgw-qr-frame {
  padding: 0.85rem;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(42, 175, 61, 0.35),
    0 0 0 8px rgba(42, 175, 61, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.35);
  animation: pgw-pulse 2.8s ease-in-out infinite;
}
.pgw-qr-frame img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  border-radius: 8px;
}
.pgw-qr-caption {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
@keyframes pgw-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(42, 175, 61, 0.35), 0 0 0 8px rgba(42, 175, 61, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 1px rgba(42, 175, 61, 0.55), 0 0 0 12px rgba(42, 175, 61, 0.12), 0 18px 40px rgba(0, 0, 0, 0.35); }
}

.pgw-checkout {
  grid-area: checkout;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.95), rgba(8, 14, 24, 0.98));
}
.pgw-checkout-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.pgw-checkout-head p {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.pgw-amount label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.pgw-amount-box {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 185, 59, 0.35);
  background: rgba(0, 0, 0, 0.35);
}
.pgw-amount-box span {
  display: grid;
  place-items: center;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0B1220;
  background: linear-gradient(135deg, #E2B93B, #c9a033);
}
.pgw-amount-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  padding: 0.75rem 0.9rem;
  outline: none;
  min-width: 0;
}
.pgw-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.pgw-fields .field:nth-child(5),
.pgw-fields .field:nth-child(6) {
  grid-column: 1 / -1;
}
.pgw-file {
  position: relative;
}
.pgw-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  height: 100%;
}
.pgw-file-ui {
  display: block;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.pgw-file-ui.has-file {
  border-style: solid;
  border-color: rgba(42, 175, 61, 0.45);
  color: #9dffb4;
  background: rgba(42, 175, 61, 0.08);
}
.pgw-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2aaf3d 0%, #1f8f32 55%, #178a2c 100%);
  box-shadow: 0 12px 28px rgba(42, 175, 61, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.pgw-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.pgw-secure {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 900px) {
  .pgw-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "methods"
      "panels"
      "checkout";
  }
  .pgw-methods { grid-template-columns: 1fr; }
  .pgw-fields { grid-template-columns: 1fr; }
  .pgw-fields .field:nth-child(5),
  .pgw-fields .field:nth-child(6) { grid-column: auto; }
  .pgw-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .pgw-qr-frame { animation: none; }
  .pgw-method:hover:not(:disabled),
  .pgw-submit:hover { transform: none; }
}


/* --- Paginacion CRM --- */
.crm-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;margin-top:.85rem;padding:.75rem .15rem .15rem;border-top:1px solid rgba(255,255,255,.08)}
.crm-pager-meta{margin:0;font-size:.8rem;color:rgba(255,255,255,.55)}
.crm-pager-meta strong{color:#fff;font-weight:800}
.crm-pager-hint{color:rgba(42,175,61,.85);font-weight:650}
.crm-pager-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem}
.crm-pager-size{display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;font-weight:700;color:rgba(255,255,255,.5)}
.crm-pager-size select{border:1px solid rgba(255,255,255,.14);border-radius:8px;background:rgba(0,0,0,.35);color:#fff;font:inherit;font-weight:700;padding:.3rem .45rem}
.crm-pager-nav{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem}
.crm-pager-btn{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .55rem;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:rgba(255,255,255,.78);text-decoration:none;font-size:.75rem;font-weight:750}
a.crm-pager-btn:hover{color:#fff;border-color:rgba(42,175,61,.45);background:rgba(42,175,61,.12)}
.crm-pager-btn.is-active{color:#061018;border-color:transparent;background:linear-gradient(135deg,#2aaf3d,#39c94d)}
.crm-pager-btn.is-disabled{opacity:.35;cursor:default;pointer-events:none}
.crm-pager-ellipsis{color:rgba(255,255,255,.35);padding:0 .2rem;font-weight:700}
@media (max-width:700px){.crm-pager{flex-direction:column;align-items:stretch}.crm-pager-controls{justify-content:space-between}}

/* Ficha PDF action */
.crm-icon-btn.is-pdf{color:#E2B93B;border-color:rgba(226,185,59,.35);background:rgba(226,185,59,.1)}
.crm-icon-btn.is-pdf:hover{color:#fff;border-color:rgba(226,185,59,.55);background:rgba(226,185,59,.22)}

.btn-ghost.is-infografia{
  display:inline-flex;align-items:center;gap:.45rem;
  color:#E2B93B;border-color:rgba(226,185,59,.4);background:rgba(226,185,59,.1);
  font-weight:800;font-size:.82rem
}
.btn-ghost.is-infografia:hover{color:#0B1220;background:#E2B93B;border-color:#E2B93B}
.btn-ghost.is-infografia[hidden]{display:none!important}
.eval-lab-top-actions .btn-ghost.is-infografia,
.tac-lab-top-actions .btn-ghost.is-infografia{white-space:nowrap}

/* PDF preview modal */
.pdf-preview{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:1rem}
.pdf-preview[hidden]{display:none!important}
.pdf-preview-backdrop{position:absolute;inset:0;border:0;background:rgba(3,8,16,.72);backdrop-filter:blur(6px);cursor:pointer}
.pdf-preview-panel{position:relative;z-index:1;width:min(960px,96vw);height:min(88vh,920px);display:flex;flex-direction:column;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:linear-gradient(165deg,#101a2a,#080e18);box-shadow:0 28px 80px rgba(0,0,0,.45);transform:translateY(12px) scale(.98);opacity:0;transition:transform .22s ease,opacity .22s ease}
.pdf-preview.is-open .pdf-preview-panel{transform:none;opacity:1}
.pdf-preview-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem 1rem;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.22)}
.pdf-preview-kicker{margin:0;font-size:.65rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#E2B93B}
.pdf-preview-head h2{margin:.15rem 0 0;font-size:1rem;font-weight:800;color:#fff}
.pdf-preview-actions{display:flex;align-items:center;gap:.45rem}
.pdf-preview-dl{display:inline-flex;align-items:center;padding:.48rem .9rem;border-radius:10px;font-size:.78rem;font-weight:800;text-decoration:none;color:#061018;background:linear-gradient(135deg,#2aaf3d,#39c94d);box-shadow:0 8px 18px rgba(42,175,61,.28)}
.pdf-preview-dl:hover{filter:brightness(1.05)}
.pdf-preview-x{width:2rem;height:2rem;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#fff;font-size:1.25rem;line-height:1;cursor:pointer}
.pdf-preview-x:hover{background:rgba(255,255,255,.12)}
.pdf-preview-frame-wrap{position:relative;flex:1;min-height:0;background:#0a1018}
.pdf-preview-frame-wrap iframe{width:100%;height:100%;border:0;background:#1a1f28}
.pdf-preview-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:.9rem;font-weight:700;color:rgba(255,255,255,.55);background:rgba(8,14,24,.72);pointer-events:none}
.pdf-preview-loading[hidden]{display:none!important}
@media (max-width:700px){.pdf-preview-panel{width:100vw;height:100vh;border-radius:0}.pdf-preview{padding:0}}
