/* ==========================================================================
   BE BETTER 2.0 · PORTAL UNIFICADO (ACADEMY + CE LLIÇÀ D'AMUNT)
   Estética Luminosa Apple Sports · Baseline FIX150 / V21–V36
   ========================================================================== */

:root {
  --yellow: #e4f22c;
  --yellow-hover: #effd38;
  --yellow-light: #f6fbcf;
  --black: #151a20;
  --black-subtle: #1c222b;
  --ink: #20272e;
  --muted: #79838e;
  --bg: #f0f2f4;
  --line: #e3e7ea;
  --white: #ffffff;
  --blue: #1767a3;
  --blue-light: #dceefa;
  --blue-hover: #125485;
  --green: #25733b;
  --green-light: #e5f6e8;
  --red: #a83e32;
  --red-light: #fff0ed;
  --shadow-sm: 0 2px 8px rgba(21, 26, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(21, 26, 32, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

/* Erradicación definitiva de navegación flotante antigua */
#bb-private-nav,
.bb-private-nav,
html.bb-private-navigation #bb-private-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  z-index: -9999 !important;
}

body.bb20-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f4f5f7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #6998ef;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   App Layout
   -------------------------------------------------------------------------- */
.bb20-app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar (Desktop) */
.bb20-sidebar {
  width: 260px;
  background: var(--black);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.06);
}

.bb20-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 24px;
  text-decoration: none;
  color: white;
}

.bb20-shield-img {
  width: 40px;
  height: auto;
  max-height: 46px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(228, 242, 44, 0.25));
}

.bb20-brand strong,
.bb20-brand-title {
  display: block;
  font-size: 18px;
  letter-spacing: -0.5px;
  font-weight: 900;
  color: var(--yellow);
}

.bb20-brand small,
.bb20-brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #e2e8f0;
  margin-top: 2px;
  font-weight: 700;
}

/* Workspace Switcher */
.bb20-workspace-switch {
  display: flex;
  gap: 6px;
  background: var(--black-subtle);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.bb20-workspace-switch button {
  flex: 1;
  color: #bfc8d0;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bb20-workspace-switch button.selected {
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 2px 8px rgba(244, 208, 43, 0.25);
}

.bb20-workspace-switch button.club-selected {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 8px rgba(23, 103, 163, 0.35);
}

/* Role Demo/Picker (Admin only) */
.bb20-role-switch {
  margin-bottom: 18px;
  padding: 0 6px;
}

.bb20-role-caption {
  font-size: 10px;
  color: #929da8;
  letter-spacing: 1px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bb20-role-buttons {
  display: flex;
  gap: 4px;
}

.bb20-role-buttons button {
  flex: 1;
  border: 1px solid #3c4652;
  background: #232a33;
  color: #d1d7dc;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 750;
  transition: all 0.15s ease;
}

.bb20-role-buttons button.selected {
  background: var(--yellow);
  color: #151a20;
  border-color: var(--yellow);
  font-weight: 800;
}

/* Sidebar Navigation */
.bb20-nav {
  display: grid;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.bb20-nav::-webkit-scrollbar {
  display: none;
}

.bb20-nav button {
  color: #bbc2ca;
  text-align: left;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
  transition: all 0.15s ease;
}

.bb20-nav button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.bb20-nav button.active {
  background: var(--yellow);
  color: #141414;
  font-weight: 750;
}

.bb20-nav button.club-active {
  background: var(--blue);
  color: white;
  font-weight: 750;
}

.bb20-nav .symbol {
  font-size: 17px;
  width: 22px;
  text-align: center;
  display: inline-block;
}

.bb20-sidebar-footer {
  margin-top: auto;
  padding: 16px 10px 4px;
  color: #8c95a0;
  font-size: 11px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bb20-sidebar-footer a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  display: block;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.bb20-main {
  flex: 1;
  min-width: 0;
  padding: 36px max(24px, 4vw) 100px;
  max-width: 1480px;
  margin: 0 auto;
}

/* Top bar */
.bb20-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.bb20-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #808a94;
  font-weight: 800;
}

.bb20-top h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -1.4px;
  margin: 6px 0 4px;
  font-weight: 850;
  color: var(--ink);
}

.bb20-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.bb20-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bb20-avatar {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--black);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.bb20-btn {
  border-radius: var(--radius-md);
  padding: 12px 18px;
  background: var(--black);
  color: white;
  font-weight: 750;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.bb20-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.bb20-btn.yellow {
  background: var(--yellow);
  color: #151a20;
}

.bb20-btn.yellow:hover {
  background: var(--yellow-hover);
}

.bb20-btn.outline {
  background: white;
  color: #343d46;
  border: 1px solid var(--line);
}

.bb20-btn.outline:hover {
  background: #f7f9fa;
  border-color: #cbd4da;
}

.bb20-btn.blue {
  background: var(--blue);
  color: white;
}

.bb20-btn.blue:hover {
  background: var(--blue-hover);
}

/* --------------------------------------------------------------------------
   Cards, Panels & Grid Elements
   -------------------------------------------------------------------------- */
.bb20-hero {
  border-radius: var(--radius-xl);
  background: var(--yellow);
  color: #151a20;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(228, 242, 44, 0.25);
  position: relative;
}

.bb20-hero.club-hero {
  background: linear-gradient(130deg, #1767a3, #72c6f1);
  color: white;
  box-shadow: 0 10px 30px rgba(23, 103, 163, 0.25);
}

.bb20-hero.club-hero .bb20-eyebrow {
  color: var(--blue-light) !important;
}

.bb20-hero h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -1px;
  margin: 6px 0;
  font-weight: 850;
}

.bb20-hero p {
  margin: 0;
  font-size: 14px;
  max-width: 65ch;
  line-height: 1.45;
}

.bb20-hero .bb20-hero-big {
  font-size: 72px;
  opacity: 0.16;
  font-weight: 950;
  letter-spacing: -6px;
  user-select: none;
}

/* Stats 4-columns grid */
.bb20-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.bb20-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bb20-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bb20-stat .bb20-stat-k {
  color: #6f7a84;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 28px;
}

.bb20-stat .bb20-stat-n {
  font-size: 34px;
  letter-spacing: -1.2px;
  font-weight: 900;
  margin: 8px 0;
  color: var(--ink);
}

.bb20-stat .bb20-stat-foot {
  font-size: 12px;
  color: #8c959e;
}

/* Generic Panel & Grid */
.bb20-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.bb20-two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 20px;
}

.bb20-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.bb20-activity-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .bb20-activity-grid-two {
    grid-template-columns: 1fr;
  }
}

.bb-back-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.bb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(21, 26, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bb-back-btn:hover {
  background: rgba(228, 242, 44, 0.16);
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateX(-2px);
}

.bb-back-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}


.bb20-activity {
  background: #11151a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bb20-activity:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(228, 242, 44, 0.45);
}

.bb20-act-cover-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #090c0f;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.bb20-act-cover {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.bb20-activity:hover .bb20-act-cover {
  transform: scale(1.03);
}

.bb20-act-cover-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.bb20-pill.dark-pill {
  background: rgba(17, 21, 25, 0.88);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.bb20-act-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bb20-act-icon {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.bb20-activity h3,
.bb20-act-title {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  font-weight: 850;
  color: #ffffff;
}

.bb20-activity p,
.bb20-act-desc {
  color: #9ba4af;
  font-size: 13.5px;
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1;
}

.bb20-act-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bb20-act-meta-item small {
  display: block;
  font-size: 10px;
  color: #717d8a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.bb20-act-meta-item strong {
  display: block;
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 750;
}

.bb20-activity-bottom,
.bb20-act-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.bb20-btn.outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.bb20-btn.outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

/* Pills & Tags */
.bb20-pill {
  border-radius: 50px;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  white-space: nowrap;
}

.bb20-pill.yellow {
  background: var(--yellow-light);
  color: #3e4605;
}

.bb20-pill.grey {
  background: #eff1f3;
  color: #6a737e;
}

.bb20-pill.blue {
  background: var(--blue-light);
  color: var(--blue);
}

/* Rows in lists */
.bb20-list-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.bb20-list-row:last-child {
  border-bottom: none;
}

.bb20-list-row strong {
  font-size: 14px;
  color: var(--ink);
  display: block;
}

.bb20-list-row small {
  display: block;
  color: #8a949e;
  margin-top: 4px;
  font-size: 12px;
}

/* Section Head */
.bb20-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 28px 0 16px;
}

.bb20-section-head h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0;
  font-weight: 800;
}

/* Form Inputs */
.bb20-search {
  background: white;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.bb20-search:focus {
  border-color: #6998ef;
}

/* Toast Notification */
.bb20-toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--black);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 100;
  animation: bbSlideUp 0.25s ease-out;
}

.bb20-toast.show {
  display: block;
}

@keyframes bbSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Mobile PWA Capsule (Bottom Navigation)
   -------------------------------------------------------------------------- */
.bb20-mobile-top {
  display: none;
}

.bb20-mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .bb20-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bb20-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bb20-app {
    display: block;
  }
  .bb20-sidebar {
    display: none;
  }
  .bb20-main {
    padding: 0 16px calc(115px + env(safe-area-inset-bottom));
  }
  .bb20-mobile-top {
    display: flex;
    background: var(--black);
    color: white;
    margin: 0 -16px 20px;
    padding: calc(16px + env(safe-area-inset-top)) 18px 18px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  .bb20-mobile-top .bb20-brand {
    padding: 0;
  }
  .bb20-mobile-top .bb20-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .bb20-top {
    margin-bottom: 20px;
  }
  .bb20-hero {
    padding: 22px;
  }
  .bb20-hero .bb20-hero-big {
    font-size: 46px;
  }
  .bb20-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }
  .bb20-stat {
    padding: 16px;
  }
  .bb20-stat .bb20-stat-n {
    font-size: 26px;
  }
  
  /* Strictly 4 items on Mobile Nav */
  .bb20-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }
  .bb20-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #bbc4cc;
    font-size: 10px;
    font-weight: 700;
  }
  .bb20-mobile-nav .sym {
    width: 44px;
    padding: 8px 0;
    font-size: 19px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
  }
  .bb20-mobile-nav button.active {
    color: var(--yellow);
  }
  .bb20-mobile-nav button.active .sym {
    background: var(--yellow);
    color: #141414;
  }
  .bb20-mobile-nav button.club-active {
    color: #70b9ee;
  }
  .bb20-mobile-nav button.club-active .sym {
    background: var(--blue);
    color: white;
  }
}

/* Modal Backdrop for Native Management */
.bb20-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: bbFadeIn 0.2s ease forwards;
}
.bb20-modal-backdrop.active,
.bb20-modal-backdrop.visible {
  display: flex !important;
}
@keyframes bbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bb20-modal-panel {
  background: #11151a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
  color: #fff;
  animation: bbSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bbSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.bb20-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb20-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bb20-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Extended Modal & Form Editing Styles */
.bb20-modal-panel.large {
  max-width: 760px;
}

.bb20-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bb20-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.bb20-input-dark {
  background: #181d24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.bb20-input-dark::placeholder {
  color: #64748b !important;
}

.bb20-input-dark:focus {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
  color: #0f172a !important;
}

select.bb20-input-dark,
.bb20-input-dark select {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer;
}

select.bb20-input-dark option {
  background: #ffffff !important;
  color: #0f172a !important;
}

.bb20-period-card {
  background: #181d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
  color: #0f172a !important;
}

.bb20-period-card:hover {
  border-color: #94a3b8 !important;
}

.bb20-eval-textarea {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.bb20-period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.bb20-period-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

.bb20-period-remove {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bb20-period-remove:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.bb20-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #e2e8f0;
  user-select: none;
}

.bb20-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--yellow);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Google Forms Style Builder Component · EDICIÓN EN BLANCO ESTILO GOOGLE FORMS
   -------------------------------------------------------------------------- */
.bb20-modal-panel.gform-builder {
  max-width: 1320px !important;
  width: 96% !important;
  max-height: 94vh !important;
  height: 94vh !important;
  padding: 0;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1400px) {
  .bb20-modal-panel.gform-builder {
    max-width: 1420px !important;
  }
}

#bbManageModal .bb20-modal-panel {
  max-width: 820px !important;
  width: 95% !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4) !important;
}

#bbManageModal .bb20-modal-head {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#bbManageModal .bb20-modal-head h3 {
  color: #0f172a !important;
}

#bbManageModal .bb20-modal-head small {
  color: #64748b !important;
}

#bbManageModal .bb20-modal-close {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

#bbManageModal .bb20-modal-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Casillas en gris claro con textos negros para modales y edición de formularios */
.bb20-modal-panel.gform-builder input:not([type="checkbox"]):not([type="radio"]),
.bb20-modal-panel.gform-builder select,
.bb20-modal-panel.gform-builder textarea,
.bb20-modal-panel.gform-builder .bb20-input-dark,
.bb20-gform-card input:not([type="checkbox"]):not([type="radio"]),
.bb20-gform-card select,
.bb20-gform-card textarea,
.bb20-gform-card .bb20-input-dark,
.bb20-period-card input:not([type="checkbox"]):not([type="radio"]),
.bb20-period-card select,
.bb20-period-card textarea,
.bb20-period-card .bb20-input-dark,
.bb20-gform-question-preview input:not([type="checkbox"]):not([type="radio"]),
.bb20-gform-question-preview select,
.bb20-gform-question-preview textarea,
.bb20-gform-question-preview .bb20-input-dark,
#bbManageModal input:not([type="checkbox"]):not([type="radio"]),
#bbManageModal select,
#bbManageModal textarea,
#bbManageModal .bb20-input-dark {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.bb20-modal-panel.gform-builder input::placeholder,
.bb20-modal-panel.gform-builder textarea::placeholder,
.bb20-gform-card input::placeholder,
.bb20-gform-card textarea::placeholder {
  color: #64748b !important;
}

.bb20-modal-panel.gform-builder input:focus,
.bb20-modal-panel.gform-builder select:focus,
.bb20-modal-panel.gform-builder textarea:focus,
.bb20-modal-panel.gform-builder .bb20-input-dark:focus,
.bb20-gform-card input:focus,
.bb20-gform-card select:focus,
.bb20-gform-card textarea:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
  outline: none !important;
}

.bb20-modal-panel.gform-builder select option,
.bb20-gform-card select option,
#bbManageModal select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

.bb20-period-card {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 14px !important;
}

.bb20-gform-question-preview {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 14px !important;
}

.bb20-modal-panel.gform-builder label,
.bb20-gform-card label,
.bb20-period-card label,
.bb20-gform-question-preview label,
#bbManageModal label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

.bb20-modal-panel.gform-builder .bb20-btn.outline-white,
.bb20-modal-panel.gform-builder .bb20-btn.outline,
#bbManageModal .bb20-btn.outline-white,
#bbManageModal .bb20-btn.outline {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 700 !important;
}

.bb20-modal-panel.gform-builder .bb20-btn.outline-white:hover,
.bb20-modal-panel.gform-builder .bb20-btn.outline:hover,
#bbManageModal .bb20-btn.outline-white:hover,
#bbManageModal .bb20-btn.outline:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.bb20-gform-top-accent {
  height: 8px;
  background: var(--yellow, #e4f22c);
  width: 100%;
  flex-shrink: 0;
}

.bb20-gform-header-bar {
  padding: 14px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.bb20-gform-header-bar h3 {
  color: #0f172a !important;
}

.bb20-gform-header-bar small {
  color: #64748b !important;
}

.bb20-gform-header-bar .bb20-modal-close {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bb20-gform-header-bar .bb20-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bb20-gform-tabs-bar {
  display: flex;
  gap: 6px;
  background: #ffffff;
  padding: 8px 22px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  overflow-x: auto;
}

.bb20-gform-tab-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bb20-gform-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bb20-gform-tab-btn.active {
  background: rgba(228, 242, 44, 0.2);
  color: #0f172a;
  box-shadow: inset 0 -2px 0 var(--yellow, #e4f22c);
  font-weight: 800;
}

.bb20-gform-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8fafc;
}

.bb20-gform-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--yellow, #e4f22c);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
  color: #0f172a;
}

.bb20-gform-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bb20-gform-card.header-card {
  border-left-width: 6px;
  border-left-color: var(--yellow, #e4f22c);
  background: #ffffff;
}

.bb20-gform-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb20-gform-card-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.45;
}

.bb20-gform-star {
  color: #ef4444;
  font-weight: 800;
  margin-left: 3px;
}

.bb20-gform-req-notice {
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
  margin-top: 10px;
}

.bb20-gform-title-input {
  width: 100%;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: none;
  border-bottom: 2px solid #cbd5e1;
  padding: 8px 4px 10px 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.bb20-gform-title-input:focus {
  border-bottom-color: var(--yellow, #e4f22c);
}

.bb20-gform-desc-input {
  width: 100%;
  font-size: 14px;
  color: #334155;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 4px;
  outline: none;
  resize: vertical;
  margin-top: 8px;
  font-family: inherit;
  line-height: 1.45;
}

.bb20-gform-desc-input:focus {
  border-bottom-color: var(--yellow, #e4f22c);
}

.bb20-gform-modal .bb20-form-label {
  color: #1e293b;
  font-weight: 700;
  font-size: 12.5px;
}

.bb20-gform-modal .bb20-input-dark {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.bb20-gform-modal .bb20-input-dark:focus {
  border-color: var(--yellow, #e4f22c) !important;
  box-shadow: 0 0 0 3px rgba(228, 242, 44, 0.25) !important;
  outline: none;
}

.bb20-gform-question-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.bb20-gform-question-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb20-gform-question-type-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.bb20-gform-footer-bar {
  padding: 14px 22px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}

/* ==========================================================================
   BE BETTER 2.0 · DIRECTORIO DE JUGADORES A-Z & FICHA 360° DE EVOLUCIÓN
   ========================================================================== */

/* Barra alfabética rápida A-Z */
.bb20-az-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px;
  margin-bottom: 12px;
}

.bb20-az-bar::-webkit-scrollbar {
  height: 4px;
}

.bb20-az-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.bb20-az-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.bb20-az-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.bb20-az-btn.active {
  background: var(--yellow, #e4f22c) !important;
  color: #151a20 !important;
  border-color: var(--yellow, #e4f22c) !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(228, 242, 44, 0.35);
}

/* Grid de tarjetas de jugadores A-Z */
.bb20-players-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .bb20-players-list-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.bb20-player-card {
  background: linear-gradient(180deg, rgba(22, 28, 38, 0.9) 0%, rgba(16, 20, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.bb20-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease;
}

.bb20-player-card:hover {
  border-color: rgba(228, 242, 44, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 14px rgba(228, 242, 44, 0.1);
}

.bb20-player-card:hover::before {
  background: var(--yellow, #e4f22c);
}

/* Avatar del jugador con iniciales y dorsal */
.bb20-player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #242c12, #181d0c);
  border: 2px solid rgba(228, 242, 44, 0.4);
  color: var(--yellow, #e4f22c);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.bb20-player-dorsal {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--yellow, #e4f22c);
  color: #12171e;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid #12171e;
}

/* Información central del jugador */
.bb20-player-info {
  flex: 1;
  min-width: 0;
}

.bb20-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.bb20-player-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb20-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(228, 242, 44, 0.14);
  color: var(--yellow, #e4f22c);
  border: 1px solid rgba(228, 242, 44, 0.35);
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.bb20-score-badge.pending {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.bb20-player-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.bb20-player-events-count {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb20-player-arrow {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bb20-player-card:hover .bb20-player-arrow {
  color: var(--yellow, #e4f22c);
  transform: translateX(3px);
}

/* ==========================================================================
   FICHA INDIVIDUAL 360° DEL JUGADOR
   ========================================================================== */
.bb20-player-profile-hero {
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.95) 0%, rgba(18, 24, 32, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.bb20-profile-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3314, #151a0a);
  border: 3px solid var(--yellow, #e4f22c);
  color: var(--yellow, #e4f22c);
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(228, 242, 44, 0.25);
}

/* Selector de eventos interactivos en la ficha */
.bb20-event-pill-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bb20-event-pill-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.bb20-event-pill-item.active {
  background: rgba(228, 242, 44, 0.08) !important;
  border-color: var(--yellow, #e4f22c) !important;
  box-shadow: 0 0 16px rgba(228, 242, 44, 0.18);
}

/* Área de texto de observaciones técnicas */
.bb20-eval-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  font-size: 13.5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bb20-eval-textarea:focus {
  border-color: var(--yellow, #e4f22c);
  box-shadow: 0 0 10px rgba(228, 242, 44, 0.25);
  outline: none;
}

/* ==========================================================================
   MÓDULOS DE ENTRENAMIENTO · TODO ICONO CON NAVEGACIÓN DIRECTA
   ========================================================================== */
.bb20-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .bb20-module-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.bb20-module-card {
  background: linear-gradient(180deg, rgba(22, 28, 38, 0.95) 0%, rgba(14, 18, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.bb20-module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.bb20-module-card:hover {
  border-color: rgba(228, 242, 44, 0.5);
  background: linear-gradient(180deg, rgba(30, 38, 50, 0.98) 0%, rgba(20, 26, 36, 1) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(228, 242, 44, 0.2);
}

.bb20-module-card:hover::before {
  background: var(--yellow, #e4f22c);
}

.bb20-module-card:active {
  transform: translateY(-1px) scale(0.98);
}

.bb20-module-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(228, 242, 44, 0.12);
  border: 1px solid rgba(228, 242, 44, 0.3);
  color: var(--yellow, #e4f22c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  transition: all 0.2s ease;
}

.bb20-module-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.bb20-module-card:hover .bb20-module-icon-wrap {
  background: var(--yellow, #e4f22c);
  color: #12171e;
  border-color: var(--yellow, #e4f22c);
  box-shadow: 0 0 14px rgba(228, 242, 44, 0.4);
  transform: scale(1.06);
}

.bb20-module-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.25;
}

.bb20-module-sub {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.2;
}

/* ==========================================================================
   LISTADO DE JUGADORES · VISTA ESTILO EXCEL (TABLA SPREADSHEET PROFESIONAL)
   ========================================================================== */
.bb20-excel-container {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
/* ==========================================================================
   LISTADO DE JUGADORES · VISTA ESTILO EXCEL (TABLA EN GRIS CLARITO CON CABECERA EN NEGRO)
   ========================================================================== */
.bb20-excel-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.bb20-excel-container::-webkit-scrollbar {
  height: 7px;
}

.bb20-excel-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.bb20-excel-table {
  width: 100%;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  text-align: left;
}

.bb20-excel-table thead th {
  background: #0b0f14;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 11px 14px;
  border-bottom: 2px solid var(--yellow, #e4f22c);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  user-select: none;
}

.bb20-excel-table thead th:last-child {
  border-right: none;
}

.bb20-excel-table tbody tr {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bb20-excel-table tbody tr:nth-child(even) {
  background: #f1f5f9;
}

.bb20-excel-table tbody tr:hover {
  background: rgba(228, 242, 44, 0.25) !important;
  box-shadow: inset 4px 0 0 var(--yellow, #e4f22c);
}

.bb20-excel-table tbody td {
  padding: 10px 14px;
  border-right: 1px solid #e2e8f0;
  color: #0f172a;
  white-space: nowrap;
  vertical-align: middle;
}

.bb20-excel-table tbody td:last-child {
  border-right: none;
}

.bb20-excel-row-num {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  background: #e2e8f0;
  width: 38px;
}

.bb20-excel-player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb20-excel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid var(--yellow, #e4f22c);
  color: var(--yellow, #e4f22c);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bb20-excel-name-box {
  display: flex;
  flex-direction: column;
}

.bb20-excel-name {
  font-size: 13.5px;
  font-weight: 750;
  color: #0f172a;
}

.bb20-excel-dorsal-tag {
  display: inline-block;
  background: var(--yellow, #e4f22c);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Ficha específica de la actividad seleccionada */
.bb20-specific-act-banner {
  background: linear-gradient(90deg, rgba(228, 242, 44, 0.15) 0%, rgba(228, 242, 44, 0.03) 100%);
  border: 1px solid rgba(228, 242, 44, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ACTIVIDADES PASADAS · MODO COMPACTO RECOGIDO CON HOVER COLOR Y EXPANSIÓN
   ========================================================================== */
.bb20-past-acts-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  width: 100%;
}

.bb20-act-past-compact {
  background: rgba(18, 24, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  filter: grayscale(95%);
  opacity: 0.68;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.bb20-act-past-compact:hover {
  filter: none !important;
  opacity: 1 !important;
  border-color: var(--yellow, #e4f22c) !important;
  background: rgba(24, 32, 46, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(228, 242, 44, 0.25);
}

.bb20-act-compact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bb20-act-past-compact:hover .bb20-act-compact-icon {
  background: rgba(228, 242, 44, 0.15);
  border-color: var(--yellow, #e4f22c);
}

.bb20-act-compact-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bb20-act-compact-title {
  font-size: 13.5px;
  font-weight: 750;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.bb20-act-past-compact:hover .bb20-act-compact-title {
  color: #ffffff;
}

.bb20-act-compact-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bb20-act-past-compact:hover .bb20-act-compact-expand {
  background: var(--yellow, #e4f22c);
  color: #0f172a;
  border-color: var(--yellow, #e4f22c);
}

.bb20-activity.bb20-activity-past {
  opacity: 0.85;
  filter: grayscale(80%);
  background: rgba(18, 22, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.bb20-activity.bb20-activity-past:hover {
  opacity: 1;
  filter: none;
  border-color: var(--yellow, #e4f22c);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(228, 242, 44, 0.2);
}

.bb20-activity.bb20-activity-past .bb20-act-cover {
  filter: grayscale(100%);
  opacity: 0.8;
}

.bb20-activity.bb20-activity-past:hover .bb20-act-cover {
  filter: none;
  opacity: 1;
}

.bb20-activity.bb20-activity-past .bb20-act-title {
  color: #94a3b8;
}

.bb20-activity.bb20-activity-past:hover .bb20-act-title {
  color: #f1f5f9;
}

.bb20-activity.bb20-activity-past .bb20-act-desc {
  color: #64748b;
}

.bb20-activity.bb20-activity-past .bb20-act-meta strong {
  color: #94a3b8;
}

.bb20-activity.bb20-activity-past .bb20-pill.yellow {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.bb20-activity.bb20-activity-past .bb20-btn.yellow {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bb20-activity.bb20-activity-past .bb20-btn.yellow:hover {
  background: var(--yellow, #e4f22c) !important;
  color: #0f172a !important;
  border-color: var(--yellow, #e4f22c) !important;
}

/* ==========================================================================
   SESIONES · MÓDULOS DE ENTRENAMIENTO ACTIVOS Y PANELES INFERIORES
   ========================================================================== */
.bb20-module-card.active {
  border-color: var(--yellow, #e4f22c) !important;
  background: linear-gradient(180deg, rgba(36, 44, 18, 0.98) 0%, rgba(20, 26, 12, 1) 100%) !important;
  box-shadow: 0 0 18px rgba(228, 242, 44, 0.35) !important;
}

.bb20-module-card.active .bb20-module-icon-wrap {
  background: var(--yellow, #e4f22c);
  color: #12171e;
  border-color: var(--yellow, #e4f22c);
}

.bb20-module-card.active::before {
  background: var(--yellow, #e4f22c);
}

.bb20-session-module-content {
  margin-top: 18px;
  animation: bbFadeIn 0.22s ease;
}

/* ==========================================================================
   ÁLBUMES · CONECTADOS Y CON PADDING LIMPIO
   ========================================================================== */
.bb20-album-card {
  background: #141922;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.bb20-album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 242, 44, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(228, 242, 44, 0.15);
}

.bb20-album-cover-wrap {
  width: 100%;
  height: 180px;
  background: #090c0f;
  position: relative;
  overflow: hidden;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.bb20-album-cover-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bb20-album-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.bb20-album-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}








/* FIX162: responsive tables, album covers and family history. */
.bb20-excel-container { width:100%; min-width:0; }
.bb20-excel-table { table-layout:fixed; }
.bb20-excel-table th:nth-child(2) { width:32%; }
.bb20-excel-table tbody td, .bb20-excel-table thead th { white-space:normal; overflow-wrap:anywhere; padding:10px 8px; }
.bb20-excel-name-box { min-width:0; }
.bb20-album-card { background:#fff; color:#0f172a; overflow:hidden; min-width:0; border-radius:14px; }
.bb20-album-body h3, .bb20-album-title { color:#0f172a !important; }
.bb20-album-body p, .bb20-album-desc { color:#475569 !important; }
.bb20-album-actions .outline-white { color:#0f172a; border-color:#cbd5e1; }
.bb20-album-cover-wrap { padding:0; height:auto; aspect-ratio:16 / 10; }
.bb20-album-cover-img { width:100%; height:100%; object-fit:cover; border-radius:0; }
.bb20-family-unavailable, .bb20-family-unavailable:hover { filter:grayscale(1) !important; opacity:.55; cursor:default; }
.bb20-family-enrolled { filter:none !important; opacity:1 !important; }
@media (max-width:768px) { #actionBtn { display:none !important; } }
@media (min-width:769px) { #mobileActionBtn { display:none !important; } }
@media (max-width:768px) {
  .bb20-excel-table th:not(:nth-child(2)), .bb20-excel-table td:not(:nth-child(2)),
  .bb20-excel-avatar, .bb20-excel-name-box > span:not(.bb20-excel-name) { display:none !important; }
  .bb20-excel-table th:nth-child(2) { width:100%; }
  .bb20-excel-table tbody td { padding:14px; }
}

/* Liquid Glass Desktop Sidebar */
.bb20-sidebar {
  background: rgba(18, 22, 28, 0.94) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Liquid Glass Mobile Bottom Bar */
@media (max-width: 768px) {
  .bb20-mobile-nav {
    background: rgba(18, 22, 28, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35) !important;
  }
}

/* Fichas de actividad negras con texto blanco para Administración */
.bb20-activity.admin-card {
  background: #151a20 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
.bb20-activity.admin-card h3 {
  color: #ffffff !important;
}
.bb20-activity.admin-card p {
  color: #cbd5e1 !important;
}
.bb20-activity.admin-card .bb20-act-meta-item small {
  color: #94a3b8 !important;
}
.bb20-activity.admin-card .bb20-act-meta-item strong {
  color: #ffffff !important;
}

/* Proporciones de carteles y portadas */
.bb20-act-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0f141a;
}
.bb20-act-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 15/11/2026 · Foto del jugador en el directorio */
.bb20-excel-avatar.has-photo{display:flex !important;width:34px;height:34px;border-radius:50%;overflow:hidden;flex:none;padding:0;background:#e2e8f0}
.bb20-excel-avatar.has-photo img{width:100%;height:100%;object-fit:cover;display:block}

/* 15/11/2026 · Barra inferior del móvil rediseñada: iconos SVG por sección y amarillo corporativo */
@media (max-width: 768px) {
  .bb20-mobile-nav{grid-template-columns:repeat(var(--bb-nav-cols,5),1fr)!important;padding:8px 6px calc(10px + env(safe-area-inset-bottom))!important;background:rgba(14,17,20,.94)!important;border-top:1px solid rgba(228,242,44,.18)!important}
  .bb20-mobile-nav button{gap:4px!important;color:#9aa3ab!important;font-size:10.5px!important;font-weight:700!important;letter-spacing:.01em;background:none;border:0;padding:2px 0;-webkit-tap-highlight-color:transparent}
  .bb20-mobile-nav .sym{width:52px!important;height:32px;padding:0!important;display:flex!important;align-items:center;justify-content:center;border-radius:16px!important;background:transparent!important;transition:background .2s ease,transform .2s ease!important}
  .bb20-mobile-nav .sym svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .bb20-mobile-nav button.active{color:#e4f22c!important}
  .bb20-mobile-nav button.active .sym{background:#e4f22c!important;color:#111518!important;transform:translateY(-1px);box-shadow:0 4px 14px rgba(228,242,44,.35)}
  .bb20-mobile-nav button.active .sym svg{stroke-width:2.1}
  .bb20-mobile-nav button:active .sym{transform:scale(.92)}
  .bb20-mobile-nav .lbl{line-height:1.1;white-space:nowrap}
}

/* 17/11/2026 · Menú lateral rediseñado: iconos de línea y pastilla activa amarilla */
.bb20-nav{gap:4px!important;padding:6px 12px!important;align-content:start!important;grid-auto-rows:max-content!important}
.bb20-nav button{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;padding:11px 14px!important;border-radius:12px!important;background:transparent!important;color:#c3cad3!important;font-weight:700!important;font-size:14px!important;border:0!important;text-align:left!important;transition:background .15s,color .15s!important}
.bb20-nav button:hover:not(.active){background:rgba(255,255,255,.06)!important;color:#fff!important}
.bb20-nav button.active{background:#d7f500!important;color:#12171e!important;box-shadow:0 6px 18px rgba(215,245,0,.22)!important}
.bb20-nav .symbol{width:34px!important;height:34px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(255,255,255,.06)!important;flex:none!important;font-size:0!important}
.bb20-nav .symbol svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bb20-nav button:not(.active) .symbol svg{stroke:#d7f500}
.bb20-nav button.active .symbol{background:rgba(18,23,30,.12)!important}
.bb20-nav-lbl{flex:1}.bb20-nav-lock{font-size:12px}
/* 17/11/2026 · Vista operativa con 4 roles (Admin, Coordinador, Técnico, Familia) */
.bb20-role-buttons{display:grid!important;grid-template-columns:1fr 1fr;gap:5px!important}
.bb20-role-buttons button{font-size:11.5px!important;padding:8px 6px!important}
/* 18/11/2026 · Ficha específica de la actividad legible: fondo negro sólido */
.bb20-specific-act-banner{background:#12171e!important;border:1px solid #12171e!important;box-shadow:0 6px 20px rgba(18,23,30,.18)!important;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-radius:16px;padding:16px 20px}
.bb20-specific-act-banner .bb20-pill.yellow{background:#d7f500!important;color:#12171e!important}
.bb20-specific-act-banner p{color:#cbd5e1!important}
.bb20-specific-act-banner .bb20-score-badge{background:#d7f500!important;color:#12171e!important;border:0!important;font-weight:900!important;border-radius:999px}

/* 20/11/2026: directorio de jugadores con columnas ordenables. */
.bb20-pl-table th:nth-child(2) { width:30%; }
.bb20-pl-th { cursor:pointer; user-select:none; white-space:nowrap !important; }
.bb20-pl-th:hover { color:#e4f22c; }
.bb20-pl-th.on { color:#e4f22c; }
.bb20-pl-arrow { margin-left:6px; font-size:10px; opacity:.55; }
.bb20-pl-th.on .bb20-pl-arrow { opacity:1; }
.bb20-pl-sub { display:block; font-size:11px; color:#64748b; margin-top:2px; font-weight:500; }
.bb20-pl-mob { display:none; }
.bb20-pl-club { font-size:12.5px; font-weight:600; color:#334155; }
.bb20-pl-last { display:block; font-size:12px; font-weight:700; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bb20-pl-count { display:inline-grid; place-items:center; min-width:30px; height:30px; padding:0 6px; border-radius:999px; background:#141a14; color:#e4f22c; font-weight:800; font-size:13px; box-sizing:border-box; }
.bb20-pl-trend { display:block; margin-top:4px; font-size:10.5px; font-weight:800; color:#64748b; }
.bb20-pl-trend.up { color:#15803d; }
.bb20-pl-trend.down { color:#b91c1c; }
@media (max-width:768px) {
  .bb20-excel-name-box > span.bb20-pl-mob { display:block !important; font-size:11.5px; color:#64748b; margin-top:3px; }
}
