/**
 * leader-dashboard.css — Premium Team Leader Command Center
 * Glassmorphism + Dark Mode + Neon Accents
 */

/* ── Layout ─────────────────────────────────────────────── */
.lhub-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  min-height: calc(100vh - 120px);
  align-items: start;
}
@media (max-width: 768px) {
  .lhub-wrap {
    grid-template-columns: 1fr;
  }
  .lhub-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0.35rem;
    border-radius: 12px;
  }
  .lhub-sidebar-title {
    display: none;
  }
  .lhub-nav-item {
    flex-shrink: 0;
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
  }
}

/* ── Sidebar ─────────────────────────────────────────────── */
.lhub-sidebar {
  background: rgba(15, 18, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.5rem;
  position: sticky;
  top: 80px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lhub-sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  padding: 0.6rem 0.75rem 0.3rem;
}

.lhub-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 200ms ease;
  position: relative;
}
.lhub-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}
.lhub-nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.18) 0%,
    rgba(6, 182, 212, 0.1) 100%
  );
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.lhub-nav-item.active .lhub-nav-icon {
  color: #a78bfa;
}
.lhub-nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
.lhub-nav-icon {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}
.lhub-nav-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0.35rem 0.5rem;
}

/* ── Main panel ──────────────────────────────────────────── */
.lhub-panel {
  min-width: 0;
}
.lhub-tab-content {
  display: none;
  animation: lhub-fadein 0.25s ease;
}
.lhub-tab-content.active {
  display: block;
}
@keyframes lhub-fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Header card ─────────────────────────────────────────── */
.lhub-header-card {
  background: rgba(15, 18, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.lhub-header-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.07) 0%,
    rgba(6, 182, 212, 0.04) 100%
  );
  pointer-events: none;
}
/* Logo wrapper */
.lhub-team-logo-wrap {
  flex-shrink: 0;
}
.lhub-team-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid rgba(124, 58, 237, 0.35);
  object-fit: cover;
  display: block;
}
.lhub-team-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}
/* Info block */
.lhub-header-info {
  flex: 1;
  min-width: 0;
}
.lhub-team-name {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.lhub-team-tag {
  font-size: 0.85rem;
  opacity: 0.5;
  font-weight: 500;
  /* inherit the gradient fill from parent .lhub-team-name when nested */
}
/* when .lhub-team-tag is standalone (inside switcher trigger), give it explicit color */
.lhub-team-switcher-trigger .lhub-team-tag {
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}
.lhub-team-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}
.lhub-dot {
  color: var(--text-muted);
  font-size: 0.7rem;
}
/* Actions cluster (right side) */
.lhub-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.lhub-multi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-violet-light);
}
/* No-team empty card */
.lhub-header-card--empty {
  align-items: center;
  gap: 1rem;
}
.lhub-no-team-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15),
    rgba(6, 182, 212, 0.08)
  );
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-violet-light);
  flex-shrink: 0;
}
.lhub-no-team-text {
  flex: 1;
  min-width: 0;
}
.lhub-no-team-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.lhub-no-team-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
/* Light theme overrides */
html[data-theme="light"] .lhub-header-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .lhub-header-card::before {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.04),
    rgba(6, 182, 212, 0.02)
  );
}
html[data-theme="light"] .lhub-team-meta {
  color: var(--text-secondary);
}
.lhub-elo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a78bfa;
  margin-left: auto;
}
.lhub-record {
  font-size: 0.8rem;
  font-weight: 600;
}
.lhub-record-w {
  color: #4ade80;
}
.lhub-record-l {
  color: #f87171;
}

/* ── Glass card ──────────────────────────────────────────── */
.lhub-card {
  background: rgba(15, 18, 33, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.lhub-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lhub-section-title::before {
  content: "";
  display: block;
  width: 3px;
  height: 0.9em;
  background: linear-gradient(#7c3aed, #06b6d4);
  border-radius: 99px;
}

/* ── Stat chips ──────────────────────────────────────────── */
.lhub-stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.lhub-stat {
  flex: 1;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  text-align: center;
}
.lhub-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
}
.lhub-stat-label {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Match cards (new premium design) ───────────────────── */
.lhub-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}
.lhub-match-card {
  background: rgba(15, 18, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.lhub-match-card:hover {
  transform: translateY(-3px);
}
.lhub-match-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.lhub-match-card.win {
  border-color: rgba(74, 222, 128, 0.25);
}
.lhub-match-card.win::before {
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
}
.lhub-match-card.win:hover {
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.15);
}
.lhub-match-card.loss {
  border-color: rgba(248, 113, 113, 0.25);
}
.lhub-match-card.loss::before {
  background: #f87171;
  box-shadow: 0 0 12px #f87171;
}
.lhub-match-card.loss:hover {
  box-shadow: 0 8px 30px rgba(248, 113, 113, 0.15);
}
.lhub-match-card.live {
  border-color: rgba(251, 191, 36, 0.4);
}
.lhub-match-card.live::before {
  background: #fbbf24;
}
.lhub-match-card.live:hover {
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
}
.lhub-match-card.scheduled {
  border-color: rgba(56, 189, 248, 0.25);
}
.lhub-match-card.scheduled::before {
  background: #38bdf8;
}

.lhub-match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.lhub-match-result-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 99px;
}
.lhub-match-result-badge.win {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.lhub-match-result-badge.loss {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.lhub-match-result-badge.live {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  animation: livepulse 1.5s infinite;
}
.lhub-match-result-badge.scheduled {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
@keyframes livepulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.lhub-match-format {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}
.lhub-matchup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.lhub-matchup-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lhub-matchup-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: "Rajdhani", sans-serif;
}
.lhub-matchup-name {
  font-size: 0.85rem;
  color: #cbd5e1;
  flex: 1;
}
.lhub-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-left: auto;
}
.lhub-match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.lhub-match-meta {
  font-size: 0.72rem;
  color: #475569;
}
.lhub-match-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0ea5e9; /* Slightly more saturated blue */
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}
.lhub-match-time i {
  font-size: 0.8rem;
  opacity: 0.8;
}

.lhub-match-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 6px;
  transition: background 150ms;
}
.lhub-match-link:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

/* ── Quick actions row ───────────────────────────────────── */
.lhub-quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.lhub-qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 180ms ease;
  white-space: nowrap;
}
.lhub-qa-primary {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.lhub-qa-primary:hover {
  box-shadow:
    0 0 20px rgba(124, 58, 237, 0.45),
    0 0 40px rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.lhub-qa-ghost {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lhub-qa-ghost:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: #a78bfa;
  text-decoration: none;
}

/* ── Tournament row ──────────────────────────────────────── */
.lhub-reg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.lhub-reg-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.9rem;
}
.lhub-reg-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.lhub-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 9px;
  border-radius: 99px;
}
.lhub-status-confirmed {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.lhub-status-pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.lhub-status-rejected {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.lhub-status-requested {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ── Challenge card ──────────────────────────────────────── */
.lhub-challenge-card {
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(139, 92, 246, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.lhub-challenge-info {
  flex: 1;
}
.lhub-challenge-who {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9rem;
}
.lhub-challenge-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.2rem;
}
.lhub-accept-btn {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.lhub-decline-btn {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.lhub-accept-btn,
.lhub-decline-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 150ms;
}
.lhub-accept-btn:hover,
.lhub-decline-btn:hover {
  opacity: 0.75;
}

/* ── Empty state ─────────────────────────────────────────── */
.lhub-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #475569;
}
.lhub-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.lhub-empty p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.35rem 0 0;
}

/* ════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES  (html[data-theme='light'])
   ════════════════════════════════════════════════════════════ */
html[data-theme="light"] .lhub-sidebar {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
html[data-theme="light"] .lhub-sidebar-title {
  color: #94a3b8;
}
html[data-theme="light"] .lhub-nav-item {
  color: #475569;
}
html[data-theme="light"] .lhub-nav-item:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #0f172a;
}
html[data-theme="light"] .lhub-nav-item.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(6, 182, 212, 0.06) 100%
  );
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.2);
}
html[data-theme="light"] .lhub-nav-item.active .lhub-nav-icon {
  color: #6d28d9;
}
html[data-theme="light"] .lhub-nav-sep {
  background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .lhub-header-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .lhub-header-card::before {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.05) 0%,
    rgba(6, 182, 212, 0.03) 100%
  );
}
html[data-theme="light"] .lhub-team-logo {
  border-color: rgba(124, 58, 237, 0.25);
}
html[data-theme="light"] .lhub-team-name {
  background: linear-gradient(135deg, #6d28d9, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .lhub-team-meta {
  color: #475569;
}
html[data-theme="light"] .lhub-elo-badge {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: #6d28d9;
}
html[data-theme="light"] .lhub-record-w {
  color: #15803d;
}
html[data-theme="light"] .lhub-record-l {
  color: #dc2626;
}

html[data-theme="light"] .lhub-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .lhub-section-title {
  color: #64748b;
}
html[data-theme="light"] .lhub-section-title::before {
  background: linear-gradient(#6d28d9, #0891b2);
}

html[data-theme="light"] .lhub-stat {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .lhub-stat-val {
  color: #0f172a;
}
html[data-theme="light"] .lhub-stat-label {
  color: #64748b;
}

html[data-theme="light"] .lhub-match-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .lhub-match-card.win {
  border-color: rgba(22, 163, 74, 0.3);
}
html[data-theme="light"] .lhub-match-card.win::before {
  background: #16a34a;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.4);
}
html[data-theme="light"] .lhub-match-card.win:hover {
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.12);
}
html[data-theme="light"] .lhub-match-card.loss {
  border-color: rgba(220, 38, 38, 0.3);
}
html[data-theme="light"] .lhub-match-card.loss::before {
  background: #dc2626;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}
html[data-theme="light"] .lhub-match-card.loss:hover {
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.12);
}
html[data-theme="light"] .lhub-match-card.live {
  border-color: rgba(180, 83, 9, 0.4);
}
html[data-theme="light"] .lhub-match-card.live::before {
  background: #d97706;
}
html[data-theme="light"] .lhub-match-card.live:hover {
  box-shadow: 0 8px 30px rgba(180, 83, 9, 0.12);
}
html[data-theme="light"] .lhub-match-card.scheduled {
  border-color: rgba(30, 64, 175, 0.3);
}
html[data-theme="light"] .lhub-match-card.scheduled::before {
  background: #2563eb;
}

html[data-theme="light"] .lhub-match-result-badge.win {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.3);
}
html[data-theme="light"] .lhub-match-result-badge.loss {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}
html[data-theme="light"] .lhub-match-result-badge.live {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.3);
}
html[data-theme="light"] .lhub-match-result-badge.scheduled {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.25);
}

html[data-theme="light"] .lhub-match-format {
  color: #64748b;
}
html[data-theme="light"] .lhub-matchup-tag {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .lhub-matchup-name {
  color: #334155;
}
html[data-theme="light"] .lhub-score {
  color: #0f172a;
}
html[data-theme="light"] .lhub-match-meta {
  color: #64748b;
}
html[data-theme="light"] .lhub-match-time {
  color: #1d4ed8;
  text-shadow: none;
}
html[data-theme="light"] .lhub-match-link {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.25);
}
html[data-theme="light"] .lhub-match-link:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

html[data-theme="light"] .lhub-qa-ghost {
  color: #475569;
  border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .lhub-qa-ghost:hover {
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

html[data-theme="light"] .lhub-reg-row {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .lhub-reg-name {
  color: #0f172a;
}
html[data-theme="light"] .lhub-reg-meta {
  color: #64748b;
}
html[data-theme="light"] .lhub-status-confirmed {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.25);
}
html[data-theme="light"] .lhub-status-pending {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.25);
}
html[data-theme="light"] .lhub-status-rejected {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.25);
}
html[data-theme="light"] .lhub-status-requested {
  background: rgba(30, 64, 175, 0.08);
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.25);
}

html[data-theme="light"] .lhub-challenge-card {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.04);
}
html[data-theme="light"] .lhub-challenge-who {
  color: #0f172a;
}
html[data-theme="light"] .lhub-challenge-meta {
  color: #64748b;
}
html[data-theme="light"] .lhub-accept-btn {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.25);
}
html[data-theme="light"] .lhub-decline-btn {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.25);
}

html[data-theme="light"] .lhub-empty {
  color: #94a3b8;
}
html[data-theme="light"] .lhub-empty-icon {
  opacity: 0.35;
}
html[data-theme="light"] .lhub-empty p {
  color: #64748b;
}

/* ═══════════════════════════════════════════════════════════════
   REDESIGN ADDITIONS — Team Hub (Phase 1–5)
   ═══════════════════════════════════════════════════════════════ */

/* ── Game badge tokens ──────────────────────────────────────── */
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.game-badge--mlbb {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.game-badge--freefire {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.game-badge--pubgm {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.game-badge--valorant {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.game-badge--codm {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.game-badge--clashroyale {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.game-badge--hok {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.game-badge--efootball {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.game-badge--fcmobile {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.game-badge--deltaforce {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.game-badge--cs2 {
  background: rgba(234, 88, 12, 0.15);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.3);
}
.game-badge--dota2 {
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.game-badge--tekken7 {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.game-badge--default {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

html[data-theme="light"] .game-badge--mlbb {
  background: rgba(59, 130, 246, 0.1);
}
html[data-theme="light"] .game-badge--freefire {
  background: rgba(249, 115, 22, 0.1);
}
html[data-theme="light"] .game-badge--pubgm {
  background: rgba(245, 158, 11, 0.1);
}
html[data-theme="light"] .game-badge--valorant {
  background: rgba(239, 68, 68, 0.1);
}
html[data-theme="light"] .game-badge--codm {
  background: rgba(34, 197, 94, 0.1);
}
html[data-theme="light"] .game-badge--clashroyale {
  background: rgba(139, 92, 246, 0.1);
}
html[data-theme="light"] .game-badge--hok {
  background: rgba(244, 63, 94, 0.1);
}
html[data-theme="light"] .game-badge--efootball {
  background: rgba(22, 163, 74, 0.1);
}

/* ── Game context bar (in team header) ──────────────────────── */
.lhub-game-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.lhub-game-context-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}
html[data-theme="light"] .lhub-game-context {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

/* ── Match filter bar ───────────────────────────────────────── */
.lhub-filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.lhub-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.lhub-filter-select {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: border-color 150ms;
}
.lhub-filter-select:focus {
  outline: none;
  border-color: var(--accent-violet);
}
.lhub-filter-clear {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition:
    color 150ms,
    border-color 150ms;
}
.lhub-filter-clear:hover {
  color: var(--accent-violet);
  border-color: rgba(124, 58, 237, 0.3);
}
html[data-theme="light"] .lhub-filter-select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

/* ── Match card enhancements ────────────────────────────────── */
.lhub-match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.lhub-match-scores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  margin: 0.3rem 0;
}
.lhub-match-score-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: "Rajdhani", sans-serif;
  line-height: 1;
}
.lhub-match-score-sep {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
html[data-theme="light"] .lhub-match-score-val {
  color: #0f172a;
}

/* ── Match section sub-header ───────────────────────────────── */
.lhub-match-section-hdr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}
.lhub-match-section-hdr::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Lineup Edit tab ────────────────────────────────────────── */
.lhub-lineup-zone {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.lhub-lineup-zone-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-violet-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lhub-lineup-zone--sub .lhub-lineup-zone-title {
  color: var(--text-secondary);
}
.lhub-slot-card {
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  transition: border-color 200ms;
}
.lhub-slot-card:focus-within {
  border-color: var(--border-bright);
}
.lhub-slot-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-violet-light);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lhub-lineup-zone--sub .lhub-slot-label {
  color: var(--text-muted);
}
.lhub-slot-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
.lhub-slot-field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.lhub-slot-ign-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}
.lhub-slot-ign-row .form-control {
  flex: 1;
}
.lhub-btn-ign-refresh {
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  border-radius: 7px;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 150ms;
  line-height: 1.4;
  white-space: nowrap;
}
.lhub-btn-ign-refresh:hover {
  background: rgba(139, 92, 246, 0.25);
}
.lhub-btn-ign-refresh:disabled {
  opacity: 0.5;
  cursor: default;
}
.lhub-ign-status {
  font-size: 0.65rem;
  min-height: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.lhub-ign-status.loading {
  color: var(--text-muted);
}
.lhub-ign-status.ok {
  color: #34d399;
}
.lhub-ign-status.err {
  color: #f87171;
}
.lhub-lineup-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-violet-dark),
    var(--accent-cyan-pure)
  );
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-violet-glow);
  transition:
    box-shadow 200ms,
    transform 150ms;
  margin-top: 1.25rem;
}
.lhub-lineup-save-btn:hover {
  box-shadow: 0 0 24px var(--accent-violet-glow);
  transform: translateY(-1px);
}
.lhub-lineup-game-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}
html[data-theme="light"] .lhub-lineup-zone {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .lhub-slot-card {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
}

/* ── Registration cards (teams/registrations.ejs) ───────────── */
.reg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition:
    border-color 200ms,
    box-shadow 200ms;
  position: relative;
  overflow: hidden;
}
.reg-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.reg-card--confirmed::before {
  background: #4ade80;
}
.reg-card--pending::before {
  background: #fbbf24;
}
.reg-card--rejected::before {
  background: #f87171;
}
.reg-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.reg-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.reg-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.reg-card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.reg-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}
/* Accordion snapshot form */
.reg-snapshot-accordion {
  display: none;
  margin-top: 0.85rem;
  padding: 1rem;
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 10px;
}
.reg-snapshot-accordion.open {
  display: block;
}
/* History rows */
.reg-history-row--approved {
  border-left: 3px solid #4ade80;
}
.reg-history-row--rejected {
  border-left: 3px solid #f87171;
}
/* Pending banner */
.reg-pending-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: #fbbf24;
  font-weight: 600;
}
html[data-theme="light"] .reg-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .reg-card:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .reg-card-title {
  color: #0f172a;
}
html[data-theme="light"] .reg-card-meta {
  color: #475569;
}
html[data-theme="light"] .reg-snapshot-accordion {
  background: rgba(34, 211, 238, 0.03);
  border-color: rgba(34, 211, 238, 0.15);
}
html[data-theme="light"] .reg-pending-banner {
  color: #92400e;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}

/* ── Manage page tab icon alignment ─────────────────────────── */
.manage-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
/* Member card game-aware slot */
.member-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 200ms;
}
.member-card:hover {
  border-color: var(--border-bright);
}
.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.member-slot-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
}
html[data-theme="light"] .member-card {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .member-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
}
html[data-theme="light"] .member-slot-badge {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   LINEUP EDIT TAB
   ═══════════════════════════════════════════════════════════ */
.lhub-lineup-zone {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(124, 58, 237, 0.03);
}
.lhub-lineup-zone--sub {
  border-color: var(--border-subtle);
  background: var(--bg-inset);
}
.lhub-lineup-zone-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-violet-light);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lhub-lineup-zone--sub .lhub-lineup-zone-title {
  color: var(--text-muted);
}

.lhub-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.18s;
}
.lhub-slot-card:last-child {
  margin-bottom: 0;
}
.lhub-slot-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.lhub-slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-violet-light);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lhub-slot-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}
.lhub-slot-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.lhub-slot-field .form-control {
  width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}
.lhub-slot-ign-row {
  display: flex;
  gap: 0.4rem;
}
.lhub-slot-ign-row .form-control {
  flex: 1;
}
.lhub-btn-ign-refresh {
  flex-shrink: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 7px;
  color: var(--accent-violet-light);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.lhub-btn-ign-refresh:hover {
  background: rgba(124, 58, 237, 0.22);
}
.lhub-btn-ign-refresh:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lhub-ign-status {
  font-size: 0.7rem;
  margin-top: 0.2rem;
  min-height: 1em;
  transition: color 0.15s;
}
.lhub-ign-status.ok {
  color: #4ade80;
}
.lhub-ign-status.err {
  color: #f87171;
}
.lhub-ign-status.loading {
  color: var(--text-muted);
}

.lhub-lineup-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  margin-top: 0.5rem;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.lhub-lineup-save-btn:hover {
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}
.lhub-lineup-game-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Light theme lineup */
html[data-theme="light"] .lhub-lineup-zone {
  background: rgba(124, 58, 237, 0.03);
  border-color: rgba(124, 58, 237, 0.12);
}
html[data-theme="light"] .lhub-lineup-zone--sub {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.07);
}
html[data-theme="light"] .lhub-slot-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
}

/* Darker text colors for light theme readability */
html[data-theme="light"] .lhub-lineup-zone-title {
  color: #6d28d9;
}
html[data-theme="light"] .lhub-lineup-zone--sub .lhub-lineup-zone-title {
  color: #475569;
}
html[data-theme="light"] .lhub-slot-label {
  color: #6d28d9;
}
html[data-theme="light"] .lhub-lineup-zone--sub .lhub-slot-label {
  color: #475569;
}
html[data-theme="light"] .lhub-slot-field label {
  color: #475569;
}
html[data-theme="light"] .lhub-lineup-game-note {
  color: #64748b;
}
html[data-theme="light"] .lhub-btn-ign-refresh {
  color: #6d28d9;
}
html[data-theme="light"] .lhub-match-section-hdr {
  color: #64748b;
}
html[data-theme="light"] .lhub-filter-label {
  color: #64748b;
}
html[data-theme="light"] .lhub-filter-clear {
  color: #64748b;
}

/* ═══════════════════════════════════════════════════════════
   REGISTRATION CARDS
   ═══════════════════════════════════════════════════════════ */
.reg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.reg-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.reg-card--confirmed {
  border-left-color: #4ade80;
}
.reg-card--pending {
  border-left-color: #fbbf24;
}
.reg-card--rejected {
  border-left-color: #f87171;
}
.reg-history-row--approved {
  border-left-color: #4ade80;
}
.reg-history-row--rejected {
  border-left-color: #f87171;
}

.reg-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.reg-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.reg-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  align-items: center;
}
.reg-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  align-items: center;
}
.reg-snapshot-accordion {
  display: none;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  animation: fadeIn 0.18s ease;
}
.reg-snapshot-accordion.open {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reg-pending-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: #fbbf24;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

/* Light theme reg cards */
html[data-theme="light"] .reg-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .reg-pending-banner {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.15);
}
