/* ============================================================
   WC2026 Collector — visual effects layered on top of Tailwind
   ============================================================ */

.logo-home__brand {
  display: inline-flex;
  align-items: center;
}

.logo-home__ball {
  display: block;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.2125em;
}

@media (min-width: 640px) {
  .logo-home__ball {
    width: 1.083333em;
    height: 1.083333em;
  }
}

@media (min-width: 768px) {
  .logo-home__ball {
    width: 1em;
    height: 1em;
  }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.is-hidden { display: none !important; }

/* ── Mobile DB-connection status dot ─────────────────────────────────────── */
/* Only visible on mobile (sm:hidden applied in HTML).
   State is driven by data-state attribute updated in renderStatus(). */
.mobile-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;          /* gray — offline / not logged in */
  flex-shrink: 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  /* subtle glow ring */
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.18);
}
.mobile-sync-dot[data-state="synced"] {
  background: #16a34a;          /* green */
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}
.mobile-sync-dot[data-state="syncing"] {
  background: #f59e0b;          /* amber */
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
  animation: mobile-dot-pulse 1.4s ease-in-out infinite;
}
.mobile-sync-dot[data-state="error"] {
  background: #ef4444;          /* red */
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.20);
}
@keyframes mobile-dot-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* Prevent margin-top on collection-content when preceding header card is hidden */
#album-header.is-hidden ~ #collection-content,
#album-header[hidden] ~ #collection-content {
  margin-top: 0 !important;
}

/* Bulletproof layout spacing: ensure 100% identical top margins across all sections */
.pitch-bg > div {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}
@media (max-width: 767px) {
  .pitch-bg > div {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}


.pitch-bg > div > #album-header {
  margin-top: 0 !important;
}

#collection-content > .home-hero,
#collection-content > .stats-cols,
#collection-content > .empty-state {
  margin-top: 0 !important;
}


/* Pitch background grid for main canvas */
.pitch-bg {
  background:
    /* top-left electric cyan bloom */
    radial-gradient(ellipse at 8% 0%,   rgba(0, 180, 255, 0.22) 0%, transparent 38%),
    /* top-right deep navy fade */
    radial-gradient(ellipse at 92% 0%,  rgba(0, 30, 80, 0.60) 0%, transparent 40%),
    /* center-left blue glow */
    radial-gradient(ellipse at 20% 55%, rgba(0, 80, 200, 0.14) 0%, transparent 40%),
    /* bottom-right teal shimmer */
    radial-gradient(ellipse at 80% 90%, rgba(0, 180, 160, 0.14) 0%, transparent 40%),
    /* bottom-center black vignette */
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
    /* base: rich near-black navy */
    linear-gradient(155deg, #03080f 0%, #06101f 35%, #091530 60%, #040a18 100%);
}

/* ---------- Modals ---------- */
#auth-modal:not([hidden]) {
  display: flex;
}
#auth-modal[hidden] {
  display: none !important;
}

/* ---------- Toast ---------- */
#toast.is-visible {
  opacity: 1 !important;
  pointer-events: auto;
}

/* ---------- Banner ---------- */
.banner {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}
.banner:empty {
  display: none;
}
.banner[data-tone="muted"] {
  background: rgba(168, 200, 255, 0.18);
  color: #ffffff;
  border-color: rgba(168, 200, 255, 0.45);
}
.banner[data-tone="warning"] {
  background: #fff4cf;
  color: #7a5a00;
  border-color: #e7c873;
}
.banner[data-tone="success"] {
  background: #d3fde2;
  color: #007236;
  border-color: #5adf82;
}

/* ---------- Section tabs (second nav bar) ---------- */
.section-tab {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: max-content;
  align-self: stretch;          /* stretch to full bar height */
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 0 12px;
  color: #424751;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.section-tab .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 300;
  transition: font-variation-settings 0.2s;
}
.section-tab:hover {
  color: #003e7a;
  background: rgba(0, 62, 122, 0.05);
}
.section-tab.is-active {
  color: #003e7a;
  border-bottom-color: #003e7a;
  font-weight: 700;
}
.section-tab.is-active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400;
}

/* ---------- Mobile bottom nav tabs ---------- */
.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  color: #424751;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-tab .material-symbols-outlined {
  font-size: 22px;
}
.mobile-tab.is-active {
  background: #d5e3ff;
  color: #003e7a;
  font-weight: 700;
}

/* ---------- Filter chips ---------- */
.chip {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0eded;
  color: #424751;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover {
  background: #e5e2e1;
}
.chip.is-active {
  background: #003e7a;
  color: #ffffff;
  border-color: #003e7a;
}

/* ---------- Group section header ---------- */
.group-header {
  background: linear-gradient(140deg, #081628 0%, #0c2040 50%, #071220 100%);
  border: 1px solid rgba(0, 130, 230, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}
.group-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--group-accent, #003e7a);
}
.group-header__left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.group-header h2 {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #e8f4ff;
  letter-spacing: -0.01em;
  margin: 0;
}
.group-header .group-codes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.team-code-pill {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #e8f4ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ---------- Team sub-section ---------- */
.board-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
/* Añadir padding de seguridad solo si board-section contiene la grilla directamente (vistas por selección o página) */
.board-section:has(> .sticker-grid) {
  padding-left: 8px;
  padding-right: 8px;
}
.team-subsection {
  padding: 16px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
.team-subsection:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

/* ---------- Selection (team) header ---------- */
.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 12px;
  margin-bottom: 14px;
}
.team-header .team-flag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  user-select: none;
}
.team-header h3 {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff !important;
  margin: 0;
}
.team-header__info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.team-header__code {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6) !important;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.team-header__label {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.team-header__pages {
  opacity: 0.5;
  font-weight: 600;
}
.team-header .team-progress,
.group-header .team-progress {
  margin-left: auto;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Sticker grid ---------- */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  /* 8 px lateral padding keeps edge-column badges (remove / repeat) 1 px
     inside the grid's border-box so they are never clipped by ancestors. */
  padding: 8px 8px 2px;
}
@media (min-width: 640px) {
  .sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px;
  }
}

/* ---------- Sticker card wrapper (lets badge & remove button overflow the card) ---------- */
.sticker-card-wrap {
  position: relative;
}

/* ---------- Sticker card ---------- */
.sticker-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s, opacity 0.18s, filter 0.18s;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e2e1;
}
.sticker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.sticker-card__surface {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

/* Top half: number + colored gradient */
.sticker-card__top {
  height: 64%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--team-accent, #c2c6d3),
    color-mix(in srgb, var(--team-accent, #c2c6d3) 40%, white) 60%,
    var(--team-accent, #c2c6d3)
  );
}
.sticker-card__top .number-plate {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #1c1b1b;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: -0.01em;
}
.sticker-card__top .type-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sticker-card__top .page-pill {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.85);
  color: #424751;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Bottom: name + id */
.sticker-card__bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px 6px;
  background: #ffffff;
  border-top: 1px solid #e5e2e1;
  min-height: 32px;
}
.sticker-card__id {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 9px;
  color: #727783;
  letter-spacing: 0.02em;
}
.sticker-card__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 10px;
  color: #1c1b1b;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Repeated badge — anchored to wrapper, not to the clipped article */
.sticker-card__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 5;
  background: #006d33;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 11px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Remove/correct button — anchored to wrapper, shows on wrap hover or owned state */
.sticker-card__remove {
  position: absolute;
  top: -7px;
  left: -7px;
  z-index: 5;
  background: #ba1a1a;
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.sticker-card-wrap:hover .sticker-card__remove,
.sticker-card-wrap:has(.sticker-card.is-owned) .sticker-card__remove {
  opacity: 1;
  transform: scale(1);
}

/* Coca-Cola tag */
.sticker-card__tag {
  position: absolute;
  bottom: 38%;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #d3001b, #a40016);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 9px;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* States */
.sticker-card.is-missing {
  border: 2px dashed #c2c6d3;
  background: #fafafa;
  opacity: 0.55;
  filter: grayscale(100%);
}
.sticker-card.is-missing:hover {
  opacity: 0.95;
  filter: grayscale(20%);
  border-color: #003e7a;
}
.sticker-card.is-missing .sticker-card__top {
  background: #eae7e7;
}
.sticker-card.is-missing .sticker-card__top .number-plate {
  color: #727783;
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
.sticker-card.is-missing .sticker-card__bottom {
  background: #fafafa;
}

.sticker-card.is-owned {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Special / foil */
.sticker-card.is-special {
  border: 2px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #ffd700, #ff8800, #ffd700) border-box;
  position: relative;
}
.sticker-card.is-special.is-owned::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: foil-shine 4s linear infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes foil-shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.sticker-card.is-special .sticker-card__top {
  background: linear-gradient(135deg, #fff3a0, #ffd700, #ff8c00);
}

/* Locked (not signed in) — still clickable but visually hint */
.sticker-card.is-locked {
  cursor: not-allowed;
}

/* ---------- Stats bento ---------- */
.metric-card {
  background: #f6f3f2;
  border: 1px solid #c2c6d3;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.metric-card span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #424751;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.metric-card strong {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #003e7a;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric-card small {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  color: #727783;
  margin-top: 2px;
}
.metric-card.tone-error strong {
  color: #ba1a1a;
}
.metric-card.tone-success {
  background: #d3fde2;
  border-color: #5adf82;
}
.metric-card.tone-success strong,
.metric-card.tone-success span {
  color: #007236;
}
.metric-card.tone-coke {
  background: linear-gradient(135deg, #fff4cf, #ffffff);
  border-color: #e7c873;
}

/* ---------- Stats view (full panel) ---------- */
.stats-panel {
  background: #ffffff;
  border: 1px solid #c2c6d3;
  border-radius: 16px;
  padding: 20px;
}
.stats-panel h3 {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #003e7a;
  margin: 0 0 14px;
}
.stats-panel .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.stats-panel .stats-pill {
  background: #f6f3f2;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.stats-panel .stats-pill span {
  font-size: 11px;
  color: #424751;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.stats-panel .stats-pill strong {
  font-family: "Anybody", sans-serif;
  font-size: 20px;
  color: #003e7a;
  font-weight: 800;
}
.stats-panel .rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed #e5e2e1;
}
.stats-panel .rank-row:last-child {
  border-bottom: none;
}
.stats-panel .rank-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.stats-panel .rank-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1c1b1b;
}
.stats-panel .rank-row span {
  font-size: 11px;
  color: #727783;
}
.stats-panel .progress-bar {
  flex: 0 0 40%;
  height: 8px;
  background: #eae7e7;
  border-radius: 999px;
  overflow: hidden;
}
.stats-panel .progress-bar span {
  display: block;
  height: 100%;
  background: #003e7a;
  border-radius: inherit;
  transition: width 0.4s;
}
/* Two-column stats layout — independent flex columns, no shared row heights */
.stats-cols {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 767px) {
  .stats-cols > .stats-panel {
    grid-area: auto !important;
  }
}
@media (min-width: 768px) {
  .stats-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto min-content;
    grid-template-areas:
      "overview  selections"
      "groups    priority";
  }
}
.stats-panel--groups,
.stats-panel--selections {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) {
  .stats-panel--groups,
  .stats-panel--selections {
    contain: size;
  }
}
.stats-panel--groups .rank-list,
.stats-panel--selections .rank-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
/* Mobile: let rank-list size to its content — remove flex-collapse tricks */
@media (max-width: 767px) {
  .stats-panel--groups .rank-list,
  .stats-panel--selections .rank-list {
    flex: none;
    min-height: unset;
    overflow-y: visible;
    max-height: none;
  }
}
.stats-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f5f8ff;
  border: 1px solid #d5e3ff;
  border-radius: 10px;
}
.stats-category {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8eaf0;
}
.stats-category h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8499;
  margin: 0 0 10px;
}
.stats-note strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: #003e7a;
  font-size: 13px;
}
.stats-note span {
  color: #424751;
  font-size: 12px;
}
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stats-kpi {
  border: 1px solid #d5d9e5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfbfd;
}
.stats-kpi span {
  display: block;
  color: #727783;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}
.stats-kpi strong {
  font-family: "Anybody", sans-serif;
  font-size: 24px;
  color: #003e7a;
}
.mini-list {
  margin-top: 14px;
  border-top: 1px dashed #d8dce8;
  padding-top: 12px;
}
.mini-list h4 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: #424751;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e2e1;
}
.mini-row:last-child { border-bottom: none; }
.mini-row strong {
  display: block;
  font-size: 13px;
  color: #1c1b1b;
}
.mini-row span {
  font-size: 11px;
  color: #727783;
}
.mini-row em {
  font-style: normal;
  font-weight: 700;
  color: #003e7a;
  font-size: 12px;
}

/* ---------- Empty state ---------- */
.empty-state {
  background: linear-gradient(140deg, #081628 0%, #0c2040 50%, #071220 100%);
  border: 1px dashed rgba(0, 130, 230, 0.4);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}
.empty-state h3 {
  font-family: "Anybody", sans-serif;
  font-size: 18px;
  color: #b8d8ff;
  margin: 0 0 8px;
}
.empty-state p {
  color: rgba(180, 210, 255, 0.65);
  margin: 0;
  font-size: 14px;
}

/* ========== HOME VIEW ========== */

.home-hero {
  background: linear-gradient(135deg, #003e7a 0%, #0055a4 60%, #006d33 100%);
  border-radius: 20px;
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 768px) {
  .home-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}
.home-hero__eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 8px;
}
.home-hero__title {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
@media (min-width: 768px) {
  .home-hero__title { font-size: 52px; }
}
.home-hero__dates {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 18px;
}
.home-hero__hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-host-badge {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
}
.home-host-badge--usa { background: rgba(60,59,110,0.5); }
.home-host-badge--can { background: rgba(213,43,30,0.45); }
.home-host-badge--mex { background: rgba(0,104,71,0.5); }
.home-hero__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .home-hero__kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .home-hero__kpis { grid-template-columns: repeat(2, 1fr); width: 260px; }
}
.home-kpi {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-kpi strong {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
}
.home-kpi small {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Home cards wrapper — tight vertical rhythm */
#collection-content:has(.home-hero) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Anula el space-y-10 de Tailwind para las cards del home */
#collection-content:has(.home-hero) > * + * {
  margin-top: 0 !important;
}

/* Home card wrapper */
.home-card {
  background: #ffffff;
  border: 1px solid #e5e2e1;
  border-radius: 20px;
  padding: 24px 24px 20px;
}
.home-card__title {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #003e7a;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* Dark-themed home cards (groups + album structure) */
.home-card--dark {
  background: linear-gradient(140deg, #081628 0%, #0c2040 50%, #071220 100%);
  border-color: rgba(0, 130, 230, 0.3);
}
.home-card--dark .home-card__title {
  color: #b8d8ff;
}
/* Group cards inside dark card */
.home-card--dark .home-group-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.home-card--dark .home-group-card__letter { color: #e8f4ff; }
.home-card--dark .home-group-card__pct { color: rgba(200, 220, 255, 0.6); }
.home-card--dark .home-team-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: #c8e0ff;
}
.home-card--dark .home-group-card__bar { background: rgba(232, 244, 255, 0.2); }
/* Structure items inside dark card */
.home-card--dark .home-structure-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.22s,
              border-color 0.22s,
              box-shadow 0.22s;
}
.home-card--dark .home-structure-item:hover {
  transform: translateY(-2px);
}
.home-card--dark .home-structure-item__num {
  color: #e8f4ff;
  transition: color 0.22s;
}
.home-card--dark .home-structure-item__label {
  color: rgba(180, 210, 255, 0.75);
}

/* 1. Stickers Totales (Electric Cyan) */
.home-card--dark .home-structure-item--total {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(8, 145, 178, 0.04) 100%);
  border-color: rgba(6, 182, 212, 0.25);
}
.home-card--dark .home-structure-item--total:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.07) 100%);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}
.home-card--dark .home-structure-item--total .home-structure-item__num {
  color: #67e8f9;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* 2. Selecciones Accent (Electric Blue) */
.home-card--dark .home-structure-item--accent {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(29, 78, 216, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.25);
}
.home-card--dark .home-structure-item--accent:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(29, 78, 216, 0.07) 100%);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.home-card--dark .home-structure-item--accent .home-structure-item__num {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

/* 3. Especiales (Amber Gold) */
.home-card--dark .home-structure-item--specials {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}
.home-card--dark .home-structure-item--specials:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.07) 100%);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.home-card--dark .home-structure-item--specials .home-structure-item__num {
  color: #fde047;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* 4. Coca-Cola (Coke Red) */
.home-card--dark .home-structure-item--coke {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.28);
}
.home-card--dark .home-structure-item--coke:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}
.home-card--dark .home-structure-item--coke .home-structure-item__num {
  color: #fca5a5;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}


/* My album — dark overrides for KPIs */
.home-card--dark .home-album-bar__track { background: rgba(255,255,255,0.1); }
.home-card--dark .home-album-bar__pct { color: #7dc4ff; }

.home-card--dark .home-album-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.22s,
              border-color 0.22s,
              box-shadow 0.22s;
}
.home-card--dark .home-album-metric:hover {
  transform: translateY(-2px);
}
.home-card--dark .home-album-metric strong {
  color: #e8f4ff;
  transition: color 0.22s;
}
.home-card--dark .home-album-metric span {
  color: rgba(180, 210, 255, 0.6);
}

/* 1. Obtenidos (Emerald Green) */
.home-card--dark .home-album-metric--owned {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.04) 100%);
  border-color: rgba(16, 185, 129, 0.25);
}
.home-card--dark .home-album-metric--owned:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.07) 100%);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.home-card--dark .home-album-metric--owned strong {
  color: #5de89a;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

/* 2. Faltantes (Tangerine Orange) */
.home-card--dark .home-album-metric--missing {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(217, 119, 6, 0.04) 100%);
  border-color: rgba(249, 115, 22, 0.25);
}
.home-card--dark .home-album-metric--missing:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(217, 119, 6, 0.07) 100%);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}
.home-card--dark .home-album-metric--missing strong {
  color: #ff9e66;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.2);
}

/* 3. Repetidos (Amethyst Purple) */
.home-card--dark .home-album-metric--duplicates {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(109, 40, 217, 0.04) 100%);
  border-color: rgba(139, 92, 246, 0.25);
}
.home-card--dark .home-album-metric--duplicates:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.07) 100%);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}
.home-card--dark .home-album-metric--duplicates strong {
  color: #c084fc;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

/* 4. Coca-Cola (Coke Red) */
.home-card--dark .home-album-metric--coke {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(185, 28, 28, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.28);
}
.home-card--dark .home-album-metric--coke:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}
.home-card--dark .home-album-metric--coke strong {
  color: #fca5a5;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* 5. Especiales (Amber Gold) */
.home-card--dark .home-album-metric--specials {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.04) 100%);
  border-color: rgba(245, 158, 11, 0.25);
}
.home-card--dark .home-album-metric--specials:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.07) 100%);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.home-card--dark .home-album-metric--specials strong {
  color: #fde047;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* 6. Stickers Totales (Electric Cyan) */
.home-card--dark .home-album-metric--total {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(8, 145, 178, 0.04) 100%);
  border-color: rgba(6, 182, 212, 0.25);
}
.home-card--dark .home-album-metric--total:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(8, 145, 178, 0.07) 100%);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}
.home-card--dark .home-album-metric--total strong {
  color: #67e8f9;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

/* Tournament format — dark overrides */
.home-card--dark .home-format-list li { border-bottom-color: rgba(255,255,255,0.08); }
.home-card--dark .home-format-list__label { color: #e8f4ff; }
.home-card--dark .home-format-list__desc { color: rgba(180,210,255,0.6); }

/* Venues — dark overrides */
.home-card--dark .home-venue-row { border-bottom-color: rgba(255,255,255,0.08); }
.home-card--dark .home-venue-row__city { color: #e8f4ff; }
.home-card--dark .home-venue-row__cap { color: rgba(180,210,255,0.6); }
.home-card--dark .home-venue-row__country { background: rgba(255,255,255,0.15); }

/* Album progress bar */
.home-album-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.home-album-bar__track {
  flex: 1;
  height: 10px;
  background: #e5e2e1;
  border-radius: 999px;
  overflow: hidden;
}
.home-album-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #003e7a, #006d33);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.home-album-bar__pct {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #003e7a;
  white-space: nowrap;
}
.home-album-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) {
  .home-album-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .home-album-metrics { grid-template-columns: repeat(6, 1fr); }
}
.home-album-metric {
  background: #f6f3f2;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home-album-metric strong {
  font-family: "Anybody", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1c1b1b;
}
.home-album-metric span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #727783;
}
.home-album-metric--owned { background: #ecfdf5; }
.home-album-metric--owned strong { color: #006d33; }
.home-album-metric--missing { background: #fff1f0; }
.home-album-metric--missing strong { color: #ba1a1a; }
.home-album-metric--coke { background: #fff1f0; }
.home-album-metric--coke strong { color: #cc2b24; }

/* Groups grid */
.home-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) {
  .home-groups-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .home-groups-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .home-groups-grid { grid-template-columns: repeat(6, 1fr); }
}
.home-group-card {
  background: #f6f3f2;
  border-radius: 14px;
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #eae7e7;
}
.home-group-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--group-accent, #003e7a);
}
.home-group-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.home-group-card__letter {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #1c1b1b;
}
.home-group-card__pct {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #727783;
}
.home-group-card__teams {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.home-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  background: #fff;
  border: 1px solid #e5e2e1;
  border-radius: 4px;
  padding: 2px 6px;
  color: #424751;
}
.home-team-pill__emoji {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.home-group-card__bar {
  height: 4px;
  background: #e5e2e1;
  border-radius: 999px;
  overflow: hidden;
}
.home-group-card__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Two-column layout */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .home-two-col { grid-template-columns: 1fr 1fr; }
}

/* Tournament format list */
.home-format-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: format-steps;
}
.home-format-list li {
  counter-increment: format-steps;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid #f0eded;
  position: relative;
  padding-left: 32px;
}
.home-format-list li:last-child { border-bottom: none; }
.home-format-list li::before {
  content: counter(format-steps);
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #003e7a;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-format-list__label {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1c1b1b;
}
.home-format-list__desc {
  font-size: 12px;
  color: #727783;
  line-height: 1.4;
}

/* Venues table */
.home-venues {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 380px;
  overflow-y: auto;
}
.home-venue-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f0eded;
  font-size: 13px;
}
.home-venue-row:last-child { border-bottom: none; }
.home-venue-row__city {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: #1c1b1b;
}
.home-venue-row__country {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #727783;
  padding: 2px 7px;
  border-radius: 4px;
}
.home-venue-row__cap {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: #727783;
  text-align: right;
  white-space: nowrap;
}

/* Album structure */
.home-album-structure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) {
  .home-album-structure { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .home-album-structure { grid-template-columns: repeat(4, 1fr); }
}
.home-structure-item {
  background: #f6f3f2;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #eae7e7;
}
.home-structure-item--accent { background: #eef3ff; border-color: #c2d0f0; }
.home-structure-item--coke { background: #fff1f0; border-color: #f5c5c3; }
.home-structure-item__num {
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #003e7a;
  letter-spacing: -0.01em;
}
.home-structure-item--coke .home-structure-item__num { color: #cc2b24; }
.home-structure-item__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #424751;
  line-height: 1.35;
}

/* ---------- Remove button icon (CSS bar, no font metrics) ---------- */
.sticker-card__remove-icon {
  display: block;
  width: 10px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

/* ---------- Nav bar interactive elements ---------- */
#query-input {
  transition: background 0.18s, box-shadow 0.18s;
}
#query-input:hover {
  background: #eae7e7;
  box-shadow: 0 0 0 2px rgba(0, 62, 122, 0.12);
}
#sign-out-button {
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
#sign-out-button:hover {
  background: rgba(0, 62, 122, 0.08);
  color: #003e7a;
  transform: scale(1.1);
}

/* ---------- Scrollbar polish ---------- */
.pitch-bg::-webkit-scrollbar,
aside::-webkit-scrollbar {
  width: 8px;
}
.pitch-bg::-webkit-scrollbar-thumb,
aside::-webkit-scrollbar-thumb {
  background: #c2c6d3;
  border-radius: 999px;
}

/* ============================================================
   Global dark theme — album header, controls, sidebar, stats
   ============================================================ */

/* Shared dark background used across all site cards */
#album-header,
#controls-panel,
#app-sidebar {
  background: linear-gradient(140deg, #081628 0%, #0c2040 50%, #071220 100%) !important;
  border-color: rgba(0, 130, 230, 0.3) !important;
}

/* --- Album header text --- */
#album-header #section-title { color: #ffffff !important; }
#album-header p,
#album-header .font-label { color: rgba(200, 225, 255, 0.75) !important; }
#album-header #progress-percent { color: #a8d4ff !important; }
#album-header #progress-detail { color: rgba(200, 225, 255, 0.65) !important; }
#album-header .bg-surface-variant { background: rgba(255,255,255,0.15) !important; }
#album-header [data-i18n="global_progress"] { color: rgba(200, 225, 255, 0.75) !important; }

/* --- Filter chips --- */
#controls-panel .chip {
  background: rgba(255,255,255,0.09);
  color: #b8d8ff;
  border-color: rgba(255,255,255,0.12);
}
#controls-panel .chip:hover { background: rgba(255,255,255,0.15); }
#controls-panel .chip.is-active {
  background: #1a5fb4;
  border-color: #3d8ef0;
  color: #ffffff;
}

/* --- Dropdowns + labels in controls --- */
#controls-panel label,
#controls-panel .text-on-surface-variant { color: rgba(180, 210, 255, 0.7) !important; }
#controls-panel select {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #e8f4ff !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
#controls-panel select:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(0, 130, 230, 0.55) !important;
  box-shadow: 0 0 10px rgba(0, 130, 230, 0.25) !important;
}
#controls-panel select:focus {
  background: rgba(255,255,255,0.1) !important;
  border-color: #3d8ef0 !important;
  box-shadow: 0 0 0 2px rgba(61, 142, 240, 0.4) !important;
  outline: none !important;
}

/* --- Sidebar --- */
#app-sidebar h3 { color: #e8f4ff !important; }
#app-sidebar h4 { color: rgba(180, 210, 255, 0.6) !important; }
#app-sidebar .border-t { border-color: rgba(255,255,255,0.1) !important; }
#app-sidebar p { color: rgba(180, 210, 255, 0.45) !important; }
/* Sidebar action buttons */
#app-sidebar button {
  color: #b8d8ff !important;
  background: transparent !important;
}
#app-sidebar #download-missing-pdf,
#app-sidebar #download-repeated-pdf {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(0, 130, 230, 0.3) !important;
  border-radius: 12px !important;
}
#app-sidebar #download-missing-pdf:hover,
#app-sidebar #download-repeated-pdf:hover {
  background: rgba(255,255,255,0.13) !important;
}
#app-sidebar button:hover { background: rgba(255,255,255,0.07) !important; }
#app-sidebar #reset-album { color: #ff8880 !important; }
#app-sidebar #open-auth { color: #7dc4ff !important; }
/* Metric cards in sidebar — vibrant & interactive glassmorphism */
.metric-card {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.22s,
              border-color 0.22s,
              box-shadow 0.22s;
  cursor: default;
}
.metric-card:hover {
  transform: translateY(-2px);
}
.metric-card span { color: rgba(180, 210, 255, 0.7); }
.metric-card strong { color: #e8f4ff; }
.metric-card small { color: rgba(180, 210, 255, 0.5); }

/* 1. Obtained (Success): Emerald Mint Glow */
.metric-card.tone-success {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.12) 0%, rgba(39, 174, 96, 0.04) 100%);
  border: 1px solid rgba(46, 204, 113, 0.24);
}
.metric-card.tone-success:hover {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18) 0%, rgba(39, 174, 96, 0.08) 100%);
  border-color: rgba(46, 204, 113, 0.45);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
}
.metric-card.tone-success span { color: rgba(163, 240, 193, 0.85); }
.metric-card.tone-success strong { color: #a3f0c1; text-shadow: 0 0 8px rgba(46, 204, 113, 0.2); }
.metric-card.tone-success small { color: rgba(163, 240, 193, 0.55); }

/* 2. Missing (Error): Tangerine Orange Glow */
.metric-card.tone-error {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.12) 0%, rgba(211, 84, 0, 0.04) 100%);
  border: 1px solid rgba(230, 126, 34, 0.24);
}
.metric-card.tone-error:hover {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.18) 0%, rgba(211, 84, 0, 0.08) 100%);
  border-color: rgba(230, 126, 34, 0.45);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}
.metric-card.tone-error span { color: rgba(255, 209, 163, 0.85); }
.metric-card.tone-error strong { color: #ffd1a3; text-shadow: 0 0 8px rgba(230, 126, 34, 0.2); }
.metric-card.tone-error small { color: rgba(255, 209, 163, 0.55); }

/* 3. Duplicates: Majestic Lavender/Amethyst */
.metric-card.tone-duplicates {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.12) 0%, rgba(142, 68, 173, 0.04) 100%);
  border: 1px solid rgba(155, 89, 182, 0.24);
}
.metric-card.tone-duplicates:hover {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.18) 0%, rgba(142, 68, 173, 0.08) 100%);
  border-color: rgba(155, 89, 182, 0.45);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.15);
}
.metric-card.tone-duplicates span { color: rgba(232, 196, 247, 0.85); }
.metric-card.tone-duplicates strong { color: #e8c4f7; text-shadow: 0 0 8px rgba(155, 89, 182, 0.2); }
.metric-card.tone-duplicates small { color: rgba(232, 196, 247, 0.55); }

/* 4. Coca-Cola: Dynamic Crimson/Red Glow */
.metric-card.tone-coke {
  background: linear-gradient(135deg, rgba(220, 20, 15, 0.14) 0%, rgba(180, 10, 5, 0.05) 100%);
  border: 1px solid rgba(220, 20, 15, 0.26);
}
.metric-card.tone-coke:hover {
  background: linear-gradient(135deg, rgba(220, 20, 15, 0.2) 0%, rgba(180, 10, 5, 0.08) 100%);
  border-color: rgba(220, 20, 15, 0.48);
  box-shadow: 0 4px 12px rgba(220, 20, 15, 0.15);
}
.metric-card.tone-coke span { color: rgba(255, 170, 165, 0.85); }
.metric-card.tone-coke strong { color: #ffa198; text-shadow: 0 0 8px rgba(220, 20, 15, 0.2); }
.metric-card.tone-coke small { color: rgba(255, 170, 165, 0.55); }


/* --- Stats panels (Stats view) --- */
.stats-panel {
  background: linear-gradient(140deg, #081628 0%, #0c2040 50%, #071220 100%);
  border-color: rgba(0, 130, 230, 0.3);
}
.stats-panel h3 { color: #b8d8ff; }
.stats-panel .rank-row { border-bottom-color: rgba(255,255,255,0.08); }
.stats-panel .rank-row strong { color: #e8f4ff; }
.stats-panel .rank-row span { color: rgba(180,210,255,0.6); }
.stats-panel .progress-bar { background: rgba(255,255,255,0.1); }
.stats-panel .progress-bar span { background: linear-gradient(90deg, #1a5fb4, #3d8ef0); }

/* --- Overviews and KPIs by tone (vibrant, cohesive dark mode styles) --- */

/* Base transition for premium feel */
.stats-panel .stats-pill,
.stats-panel .stats-kpi {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.22s,
              border-color 0.22s,
              box-shadow 0.22s;
  cursor: default;
}

.stats-panel .stats-pill:hover,
.stats-panel .stats-kpi:hover {
  transform: translateY(-2px);
}

/* 1a. Obtained / Success (General): Emerald Mint Glow */
.stats-panel .stats-pill--obtained {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.12) 0%, rgba(39, 174, 96, 0.04) 100%);
  border: 1px solid rgba(46, 204, 113, 0.24);
}
.stats-panel .stats-pill--obtained:hover {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18) 0%, rgba(39, 174, 96, 0.08) 100%);
  border-color: rgba(46, 204, 113, 0.45);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.15);
}
.stats-panel .stats-pill--obtained span {
  color: rgba(163, 240, 193, 0.75);
}
.stats-panel .stats-pill--obtained strong {
  color: #a3f0c1;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.2);
}

/* 1b. Selections at 100%: Electric Cyan Glow */
.stats-panel .stats-kpi--selections {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.14) 0%, rgba(0, 160, 200, 0.04) 100%);
  border: 1px solid rgba(0, 210, 255, 0.26);
}
.stats-panel .stats-kpi--selections:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2) 0%, rgba(0, 160, 200, 0.08) 100%);
  border-color: rgba(0, 210, 255, 0.48);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}
.stats-panel .stats-kpi--selections span {
  color: rgba(161, 244, 255, 0.75);
}
.stats-panel .stats-kpi--selections strong {
  color: #a1f4ff;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

/* 1c. Groups at 100%: Royal Blue Glow */
.stats-panel .stats-kpi--groups {
  background: linear-gradient(135deg, rgba(54, 98, 230, 0.14) 0%, rgba(30, 70, 200, 0.04) 100%);
  border: 1px solid rgba(54, 98, 230, 0.26);
}
.stats-panel .stats-kpi--groups:hover {
  background: linear-gradient(135deg, rgba(54, 98, 230, 0.2) 0%, rgba(30, 70, 200, 0.08) 100%);
  border-color: rgba(54, 98, 230, 0.48);
  box-shadow: 0 4px 15px rgba(54, 98, 230, 0.15);
}
.stats-panel .stats-kpi--groups span {
  color: rgba(204, 213, 255, 0.75);
}
.stats-panel .stats-kpi--groups strong {
  color: #ccd5ff;
  text-shadow: 0 0 8px rgba(54, 98, 230, 0.2);
}

/* 2. Missing / Pending: Tangerine Orange Glow */
.stats-panel .stats-pill--missing {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.12) 0%, rgba(211, 84, 0, 0.04) 100%);
  border: 1px solid rgba(230, 126, 34, 0.24);
}
.stats-panel .stats-pill--missing:hover {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.18) 0%, rgba(211, 84, 0, 0.08) 100%);
  border-color: rgba(230, 126, 34, 0.45);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.15);
}
.stats-panel .stats-pill--missing span {
  color: rgba(255, 209, 163, 0.75);
}
.stats-panel .stats-pill--missing strong {
  color: #ffd1a3;
  text-shadow: 0 0 8px rgba(230, 126, 34, 0.2);
}

/* 3. Duplicates: Majestic Lavender/Amethyst */
.stats-panel .stats-pill--duplicates {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.12) 0%, rgba(142, 68, 173, 0.04) 100%);
  border: 1px solid rgba(155, 89, 182, 0.24);
}
.stats-panel .stats-pill--duplicates:hover {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.18) 0%, rgba(142, 68, 173, 0.08) 100%);
  border-color: rgba(155, 89, 182, 0.45);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.15);
}
.stats-panel .stats-pill--duplicates span {
  color: rgba(232, 196, 247, 0.75);
}
.stats-panel .stats-pill--duplicates strong {
  color: #e8c4f7;
  text-shadow: 0 0 8px rgba(155, 89, 182, 0.2);
}

/* 4. Specials / Specials Pending: Brilliant Amber Gold Glow */
.stats-panel .stats-pill--specials,
.stats-panel .stats-kpi--specials {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.12) 0%, rgba(243, 156, 18, 0.04) 100%);
  border: 1px solid rgba(241, 196, 15, 0.24);
}
.stats-panel .stats-pill--specials:hover,
.stats-panel .stats-kpi--specials:hover {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.18) 0%, rgba(243, 156, 18, 0.08) 100%);
  border-color: rgba(241, 196, 15, 0.45);
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.15);
}
.stats-panel .stats-pill--specials span,
.stats-panel .stats-kpi--specials span {
  color: rgba(255, 232, 133, 0.75);
}
.stats-panel .stats-pill--specials strong,
.stats-panel .stats-kpi--specials strong {
  color: #ffe885;
  text-shadow: 0 0 8px rgba(241, 196, 15, 0.2);
}

/* 5. Coca-Cola / Coca-Cola Pending: Dynamic Crimson/Red Glow */
.stats-panel .stats-pill--coke,
.stats-panel .stats-kpi--coke {
  background: linear-gradient(135deg, rgba(220, 20, 15, 0.14) 0%, rgba(180, 10, 5, 0.05) 100%);
  border: 1px solid rgba(220, 20, 15, 0.26);
}
.stats-panel .stats-pill--coke:hover,
.stats-panel .stats-kpi--coke:hover {
  background: linear-gradient(135deg, rgba(220, 20, 15, 0.2) 0%, rgba(180, 10, 5, 0.08) 100%);
  border-color: rgba(220, 20, 15, 0.48);
  box-shadow: 0 4px 15px rgba(220, 20, 15, 0.15);
}
.stats-panel .stats-pill--coke span,
.stats-panel .stats-kpi--coke span {
  color: rgba(255, 170, 165, 0.75);
}
.stats-panel .stats-pill--coke strong,
.stats-panel .stats-kpi--coke strong {
  color: #ffa198;
  text-shadow: 0 0 8px rgba(220, 20, 15, 0.2);
}

/* 6. Edition: Platinum Silver/White Glow */
.stats-panel .stats-pill--edition {
  background: linear-gradient(135deg, rgba(220, 225, 235, 0.12) 0%, rgba(200, 205, 215, 0.04) 100%);
  border: 1px solid rgba(220, 225, 235, 0.24);
}
.stats-panel .stats-pill--edition:hover {
  background: linear-gradient(135deg, rgba(220, 225, 235, 0.18) 0%, rgba(200, 205, 215, 0.08) 100%);
  border-color: rgba(220, 225, 235, 0.45);
  box-shadow: 0 4px 15px rgba(220, 225, 235, 0.15);
}
.stats-panel .stats-pill--edition span {
  color: rgba(220, 225, 235, 0.75);
}
.stats-panel .stats-pill--edition strong {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(220, 225, 235, 0.2);
}

/* Overrides para listas secundarias en panel oscuro */
.stats-panel .mini-list {
  border-top-color: rgba(255, 255, 255, 0.08);
}
.stats-panel .mini-list h4 {
  color: rgba(180, 210, 255, 0.65);
}
.stats-panel .mini-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.stats-panel .mini-row strong {
  color: #e8f4ff;
}
.stats-panel .mini-row span {
  color: rgba(180, 210, 255, 0.6);
}
.stats-panel .mini-row em {
  color: #b8d8ff;
}
.stats-note {
  background: rgba(0,80,180,0.2);
  border-color: rgba(60,140,255,0.3);
}
.stats-note strong { color: #7dc4ff; }
.stats-note span { color: rgba(180,210,255,0.75); }
.stats-category h4 { color: rgba(180,210,255,0.55); }
.stats-category { border-top-color: rgba(255,255,255,0.08); }

/* Language toggle flags: active language slightly larger, other language subtler */
#lang-toggle {
  display: flex !important;
  align-items: center !important;
}
#lang-label {
  display: inline-flex;
  align-items: center;
  /* Optical centering correction to align flag emojis with baseline of sans-serif text */
  transform: translateY(1.5px);
}
#lang-label span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
#lang-from-flag {
  opacity: 1;
  transition: opacity 0.2s;
}
#lang-to-flag {
  opacity: 0.5;
  transition: opacity 0.2s;
}
#lang-label span[data-lang="es"],
#lang-label span[data-lang="en"] {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
}
