/* ==========================================================================
   Brockport Blizzards Tournament Tracker - Modern Stylesheet
   Palette: Deep Navy (#0A192F), Sky Blue (#0284C7), Ice (#F0F9FF), White
   ========================================================================== */

:root {
  --blizzard-navy-900: #0a192f;
  --blizzard-navy-800: #112240;
  --blizzard-navy-700: #1e3a5f;
  --blizzard-blue-600: #0284c7;
  --blizzard-blue-500: #0ea5e9;
  --blizzard-blue-400: #38bdf8;
  --blizzard-ice: #f0f9ff;
  --blizzard-ice-border: #bae6fd;
  
  --color-success-bg: #ecfdf5;
  --color-success-border: #6ee7b7;
  --color-success-text: #065f46;
  --color-success-dark: #059669;

  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;
  --color-warning-text: #92400e;
  --color-warning-dark: #d97706;

  --color-danger-bg: #fef2f2;
  --color-danger-text: #991b1b;
  --color-danger-border: #fca5a5;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER & BRANDING
   ========================================================================== */
.club-header {
  background: linear-gradient(135deg, var(--blizzard-navy-900) 0%, var(--blizzard-navy-800) 60%, var(--blizzard-navy-700) 100%);
  color: #ffffff;
  padding: 1.5rem 1.5rem 0 1.5rem;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--blizzard-blue-500);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.club-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.club-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.club-tagline {
  font-size: 0.875rem;
  color: var(--blizzard-blue-400);
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ==========================================================================
   QUICK STATS BAR
   ========================================================================== */
.stats-bar-wrapper {
  max-width: 1280px;
  margin: 1.25rem auto 0 auto;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-card.highlight-green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(74, 222, 128, 0.35);
}

.stat-card.highlight-amber {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.35);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-card.highlight-green .stat-value {
  color: #86efac;
}

.stat-card.highlight-amber .stat-value {
  color: #fde047;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */
.nav-tabs {
  max-width: 1280px;
  margin: 1.5rem auto 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2px;
}

.tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.5rem;
  overflow-x: visible;
}

.nav-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  border-bottom-color: var(--blizzard-blue-400);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}


/* ==========================================================================
   BUTTONS & ICONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-primary {
  background-color: var(--blizzard-blue-600);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.club-header .btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.club-header .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--blizzard-blue-600);
  border-color: var(--blizzard-blue-600);
}

.btn-outline:hover {
  background-color: var(--blizzard-ice);
}

.btn-tertiary {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-tertiary:hover {
  background-color: #e2e8f0;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN CONTENT & TABS
   ========================================================================== */
.main-container {
  max-width: 1280px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ==========================================================================
   FILTERS & SEARCH
   ========================================================================== */
.filters-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  gap: 0.5rem;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
}

.search-box input {
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  outline: none;
  width: 100%;
  font-family: inherit;
  color: var(--text-main);
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--blizzard-navy-800);
  color: #ffffff;
  border-color: var(--blizzard-navy-800);
}

.filter-chip.amber.active {
  background: var(--color-warning-dark);
  color: #ffffff;
  border-color: var(--color-warning-dark);
}

.filter-chip.green.active {
  background: var(--color-success-dark);
  color: #ffffff;
  border-color: var(--color-success-dark);
}

/* ==========================================================================
   TOURNAMENTS GRID & CARDS
   ========================================================================== */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tournament-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.tournament-card.status-unlocked {
  border-top: 4px solid var(--color-success-dark);
}

.tournament-card.status-needs_1 {
  border-top: 4px solid var(--color-warning-dark);
}

.card-header {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tournament-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
  line-height: 1.25;
}

.host-club {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 1.25rem 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* BULK DISCOUNT BANNER */
.discount-banner {
  margin: 0 1.25rem 1rem 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.discount-banner.unlocked {
  background-color: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}

.discount-banner.needs_1 {
  background-color: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning-text);
}

.discount-banner.needs_more,
.discount-banner.none {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
}

.banner-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
}

.banner-rule {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* TEAMS LIST */
.card-teams-section {
  padding: 0 1.25rem 1.25rem 1.25rem;
  flex: 1;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.team-pill-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.team-pill-name {
  font-weight: 600;
  color: var(--blizzard-navy-900);
}

.team-pill-coach {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.team-pill-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.status-committed {
  background: #dcfce7;
  color: #166534;
}

.status-interested {
  background: #fef3c7;
  color: #92400e;
}

.btn-remove-team {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  border-radius: 4px;
}

.btn-remove-team:hover {
  color: #ef4444;
  background: #fee2e2;
}

.no-teams-msg {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
  padding: 0.5rem 0;
}

/* CARD FOOTER */
.card-footer {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   ADMIN OVERVIEW TABLE
   ========================================================================== */
.admin-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
}

.admin-header-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background: #f1f5f9;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
  border-bottom: 2px solid var(--border-card);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #f8fafc;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-unlocked {
  background: #dcfce7;
  color: #166534;
}

.badge-needs_1 {
  background: #fef3c7;
  color: #92400e;
}

.badge-needs_more {
  background: #f1f5f9;
  color: #475569;
}

.reciprocal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
}

.reciprocal-toggle input {
  cursor: pointer;
  width: 1.1rem;
  height: 1.1rem;
}

/* ==========================================================================
   TEAMS DIRECTORY
   ========================================================================== */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.team-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blizzard-navy-900);
}

.team-card-division {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--blizzard-ice);
  color: var(--blizzard-blue-600);
}

.team-contact-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 90%;
  margin: auto;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 1.5rem;
  background: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
}

.btn-close:hover {
  color: var(--text-main);
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blizzard-navy-900);
  margin-bottom: 0.35rem;
}

.req {
  color: #ef4444;
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--blizzard-blue-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  display: block;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
}

.toast {
  background: var(--blizzard-navy-900);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--blizzard-blue-400);
  animation: slideIn 0.2s ease forwards;
}

.toast.success {
  border-left-color: #22c55e;
}

.toast.error {
  border-left-color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.club-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-card);
  margin-top: auto;
  background: #ffffff;
}

/* ==========================================================================
   ENHANCEMENT: TOTAL CLUB SAVINGS TICKER (UPPER RIGHT)
   ========================================================================== */
.savings-ticker-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.45) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
}

.savings-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.savings-content {
  display: flex;
  flex-direction: column;
}

.savings-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a7f3d0;
  font-weight: 700;
  line-height: 1;
}

.savings-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   ENHANCEMENT: EARLY-BIRD ALERT BANNERS (30-DAY WARNING & 14-DAY FLASHING)
   ========================================================================== */
.early-bird-banner-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.eb-banner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.eb-banner-item.warning {
  background-color: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: #92400e;
}

/* 14-DAY FLASHING & BOLDED ALERT */
.eb-banner-item.urgent-pulse {
  background-color: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
  font-weight: 800;
  animation: pulse-urgent 1.5s infinite ease-in-out;
}

@keyframes pulse-urgent {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
    background-color: #fef2f2;
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(239, 68, 68, 0.4);
    border-color: #b91c1c;
    background-color: #fee2e2;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    border-color: #ef4444;
    background-color: #fef2f2;
  }
}

.eb-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eb-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.eb-banner-item.urgent-pulse .eb-badge-chip {
  background-color: #dc2626;
  color: #ffffff;
}

.eb-banner-item.warning .eb-badge-chip {
  background-color: #d97706;
  color: #ffffff;
}

/* ==========================================================================
   ENHANCEMENT: TOURNAMENT CARD LOGO & MULTI-TIERS
   ========================================================================== */
.tournament-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tournament-logo-crest {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.tiers-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.tier-chip.unlocked {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  font-weight: 700;
}

.tier-chip.next-target {
  background: #fef3c7;
  border-color: #fde047;
  color: #92400e;
  font-weight: 700;
}

/* 3-STATE TEAM BADGES WITH CLICK-TO-SWITCH INTERACTION */
.team-pill-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.team-pill-status.clickable {
  cursor: pointer;
  border: 1px dashed transparent;
}

.team-pill-status.clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border-color: currentColor;
}

.status-interested {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-committed {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.status-registered {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

/* ==========================================================================
   ENHANCEMENT: DYNAMIC TIER BUILDER & QUICK STATUS MODAL
   ========================================================================== */
.modal-dialog-wide {
  max-width: 680px;
}

.form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
}

.tiers-builder-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.tier-row {
  display: grid;
  grid-template-columns: 100px 110px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
}

.tier-row input,
.tier-row select {
  font-size: 0.8125rem;
  padding: 0.4rem 0.5rem;
}

.btn-remove-tier {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.35rem;
}

.btn-remove-tier:hover {
  color: #b91c1c;
}

/* QUICK STATUS SWITCHER MODAL */
.quick-status-confirmation-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #0369a1;
}

.status-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.status-option-label {
  cursor: pointer;
}

.status-option-label input {
  display: none;
}

.status-option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.status-option-card:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.status-option-label input:checked + .status-option-card {
  border-color: var(--blizzard-blue-600);
  background-color: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.dot-interested { background-color: #f59e0b; }
.dot-committed { background-color: #0284c7; }
.dot-registered { background-color: #10b981; }

.opt-name {
  font-size: 0.9375rem;
  color: var(--blizzard-navy-900);
}

.opt-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }
  .header-actions .btn {
    flex: 1;
  }
  .savings-ticker-badge {
    width: 100%;
    justify-content: center;
  }
  .tier-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .tournaments-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   SEASON SELECTOR WIDGET & PAST SEASON THEME (RED)
   ========================================================================== */
.season-selector-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.season-selector-widget:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.season-selector-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.season-selector-body {
  display: flex;
  flex-direction: column;
}

.season-selector-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blizzard-blue-300);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.season-dropdown {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  padding-right: 0.25rem;
  outline: none;
}

.season-dropdown option {
  background: var(--blizzard-navy-900);
  color: #ffffff;
  font-weight: 600;
}

/* Past Season Warning Banner */
.past-season-banner-wrapper {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
  border-bottom: 2px solid #ef4444;
  animation: slideDown 0.3s ease-out;
}

.past-season-banner-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.past-season-banner-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.past-season-banner-text .past-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.past-season-banner-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.past-season-banner-text p {
  font-size: 0.8125rem;
  color: #fecaca;
  margin: 0.1rem 0 0 0;
}

.btn-white {
  background: #ffffff;
  color: #991b1b;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.btn-white:hover {
  background: #fef2f2;
  color: #7f1d1d;
  transform: translateY(-1px);
}

/* Red Color Change when in Past Season Mode */
body.past-season-mode .club-header {
  border-bottom: 3px solid #ef4444 !important;
}

body.past-season-mode .season-selector-widget {
  background: rgba(220, 38, 38, 0.35) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

body.past-season-mode .season-selector-label {
  color: #fca5a5 !important;
}

body.past-season-mode .nav-tab.active {
  background: #dc2626 !important;
  color: #ffffff !important;
}

body.past-season-mode .nav-tab.active::after {
  background: #dc2626 !important;
}

body.past-season-mode .filters-card {
  border-left: 4px solid #dc2626;
}

/* ==========================================================================
   TOOLS & SCRAPER TAB STYLES
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-card);
  position: relative;
}

.tool-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.tool-badge.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.tool-badge.badge-gray {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.tool-header-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tool-emoji-lg {
  font-size: 2rem;
  line-height: 1;
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
  margin: 0;
}

.tool-card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

.tool-card-subtitle a {
  color: var(--blizzard-blue-600);
  text-decoration: none;
}

.tool-card-subtitle a:hover {
  text-decoration: underline;
}

.tool-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}

.tool-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.tool-safeguards {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.safeguard-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-main);
  line-height: 1.4;
}

.safeguard-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.tool-status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.status-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-meta-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #166534;
}

.status-meta-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blizzard-navy-900);
}

.tool-options-row {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.tool-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-main);
}

.tool-checkbox-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
  accent-color: var(--blizzard-blue-600);
}

.tool-action-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-action-lg {
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.btn-action-lg:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Scraper Live Result Box */
.scraper-result-card {
  margin-top: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--blizzard-blue-600);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  animation: fadeIn 0.25s ease-in-out;
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--blizzard-navy-900);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-dot.success {
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.6);
}

.status-indicator-dot.running {
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}

.result-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.result-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.result-stat-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.result-stat-tile .tile-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
  line-height: 1.1;
}

.result-stat-tile .tile-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

.result-stat-tile.highlight-green .tile-val {
  color: #16a34a;
}

.result-stat-tile.highlight-blue .tile-val {
  color: var(--blizzard-blue-600);
}

.result-summary-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
}

/* ==========================================================================
   CALENDAR VIEW STYLES
   ========================================================================== */
.calendar-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.calendar-month-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
  margin: 0;
  letter-spacing: -0.02em;
}

.calendar-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}

.calendar-controls-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cal-quick-jump {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-control-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-jump-dropdown {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: var(--blizzard-navy-900);
  cursor: pointer;
}

.cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cal-nav-buttons .btn {
  background: #f1f5f9;
  color: var(--blizzard-navy-900);
  border: 1px solid #cbd5e1;
}

.cal-nav-buttons .btn:hover {
  background: #e2e8f0;
}

/* Legend Bar */
.calendar-legend-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.cal-legend-items {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-unlocked { background: #16a34a; }
.dot-needs-one { background: #f59e0b; }
.dot-open { background: var(--blizzard-blue-600); }
.dot-early-bird { background: #ef4444; }

.cal-summary-meta {
  font-weight: 700;
  color: var(--blizzard-navy-900);
}

/* Calendar Grid */
.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f1f5f9;
  border-bottom: 2px solid var(--border-card);
}

.cal-weekday {
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(115px, auto);
}

.cal-day-cell {
  border-right: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background-color 0.15s ease;
  min-height: 115px;
  position: relative;
}

.cal-day-cell:nth-child(7n) {
  border-right: none;
}

.cal-day-cell.is-other-month {
  background-color: #f8fafc;
}

.cal-day-cell.is-other-month .cal-day-num {
  color: #94a3b8;
}

.cal-day-cell.is-today {
  background-color: #f0fdf4;
}

.cal-day-cell.is-today .cal-day-num {
  background-color: #16a34a;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cal-day-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
}

.cal-day-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Event Pill inside Calendar Day */
.cal-event-pill {
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cal-event-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cal-event-pill.status-unlocked {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.cal-event-pill.status-needs_1 {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.cal-event-pill.status-needs_more {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.cal-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.cal-event-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.cal-event-badge {
  font-size: 0.65rem;
  flex-shrink: 0;
}

.cal-event-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  opacity: 0.9;
}

.cal-event-host {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-cal-add-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.07);
  border: none;
  cursor: pointer;
  color: inherit;
  transition: background 0.1s ease;
}

.btn-cal-add-pill:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Calendar Modal Details */
.cal-modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cal-modal-logo-wrapper img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px;
}

.cal-modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.cal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cal-meta-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cal-meta-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blizzard-navy-900);
}

.cal-modal-discount-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.cal-modal-discount-banner.unlocked {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.cal-modal-discount-banner.needs_1 {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.cal-modal-discount-banner.needs_more {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.cal-modal-eb-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.84rem;
}

.cal-modal-teams-section {
  border-top: 1px solid var(--border-card);
  padding-top: 1rem;
}

.cal-modal-teams-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.cal-modal-teams-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--blizzard-navy-900);
}

.cal-modal-teams-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cal-modal-teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.cal-team-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.cal-team-name {
  font-weight: 700;
  color: var(--blizzard-navy-900);
}

.cal-team-coach {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .calendar-days-grid {
    grid-auto-rows: minmax(85px, auto);
  }
  .cal-day-cell {
    min-height: 85px;
    padding: 0.25rem;
  }
  .cal-event-pill {
    padding: 0.2rem 0.3rem;
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   TEAM STAFF MODAL STYLES
   ========================================================================== */
.staff-section-badge {
  background: var(--blizzard-navy-50);
  border-left: 3px solid var(--blizzard-gold);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--blizzard-navy-900);
  margin-bottom: 0.75rem;
}

.staff-accordion {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  overflow: hidden;
}

.staff-accordion-summary {
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blizzard-navy-800);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: #f1f5f9;
}

.staff-accordion-summary:hover {
  background: #e2e8f0;
}

.staff-accordion-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.staff-fieldset {
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: #ffffff;
}

.staff-fieldset legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blizzard-navy-700);
  padding: 0 0.4rem;
}

/* ==========================================================================
   TEAM VIEW TAB STYLES
   ========================================================================== */
.team-view-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.team-view-selector-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.team-view-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-select-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blizzard-navy-900);
  white-space: nowrap;
}

.team-view-dropdown {
  min-width: 280px;
  font-weight: 600;
  border: 2px solid var(--blizzard-blue-600);
}

.team-view-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  margin: 1rem 0;
}

.team-view-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.team-view-empty-state h3 {
  font-size: 1.25rem;
  color: var(--blizzard-navy-900);
  margin-bottom: 0.5rem;
}

.team-view-empty-state p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* Team Profile Summary Card */
.team-profile-card {
  background: linear-gradient(135deg, var(--blizzard-navy-900) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.team-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.team-profile-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.team-profile-division {
  display: inline-block;
  background: var(--blizzard-gold);
  color: var(--blizzard-navy-900);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-left: 0.75rem;
  text-transform: uppercase;
}

.team-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.staff-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
}

.staff-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.staff-role-badge.head {
  background: #f59e0b;
  color: #1e293b;
}

.staff-role-badge.asst {
  background: #3b82f6;
  color: #ffffff;
}

.staff-role-badge.mgr {
  background: #10b981;
  color: #ffffff;
}

.staff-tile-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.staff-tile-contact a {
  color: #93c5fd;
  text-decoration: none;
}
.staff-tile-contact a:hover {
  text-decoration: underline;
}

/* Section Containers */
.team-view-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.section-title-row {
  margin-bottom: 1rem;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
  margin: 0;
}

.badge-count {
  background: var(--blizzard-navy-100);
  color: var(--blizzard-navy-800);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.section-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}

/* Entered Tournaments Grid & Cards */
.team-entered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.entered-card {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.entered-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.entered-card-status-wrapper {
  flex-shrink: 0;
}

.badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
}

.badge-status-select {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 1.65rem 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.7rem;
  border: 1.5px solid transparent;
}

.badge-status-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.badge-status-select:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.badge-status.interested,
.badge-status-select.interested {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.badge-status.committed,
.badge-status-select.committed {
  background-color: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.badge-status.registered,
.badge-status-select.registered {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #86efac;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.badge-status-select option {
  background: #ffffff;
  color: var(--blizzard-navy-900);
  font-weight: 600;
}

.entered-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
  line-height: 1.25;
}

.entered-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.peer-roster-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.peer-roster-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.peer-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.peer-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.peer-pill .peer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.peer-status-dot.registered { background: #10b981; }
.peer-status-dot.committed { background: #3b82f6; }
.peer-status-dot.interested { background: #f59e0b; }

/* Priority Recommendation Groups */
.priority-group {
  margin-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.priority-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.priority-header h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blizzard-navy-900);
  margin: 0;
}

.priority-badge-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.priority-badge-pill.p1 {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.priority-badge-pill.p2 {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.priority-badge-pill.p3 {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.priority-badge-pill.p4 {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.priority-badge-pill.p-conflict {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.priority-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.rec-card {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rec-card.tier-p1 {
  border-top: 3px solid #f59e0b;
}

.rec-card.tier-p2 {
  border-top: 3px solid #3b82f6;
}

.rec-card.tier-p3 {
  border-top: 3px solid #10b981;
}

.rec-card.tier-p4 {
  border-top: 3px solid #94a3b8;
}

.rec-card.tier-conflict {
  border-top: 3px solid #ef4444;
  opacity: 0.85;
  background: #fff5f5;
}

.rec-badge-callout {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  display: inline-block;
}

.rec-badge-callout.p1 {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.rec-badge-callout.p2 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.rec-badge-callout.p3 {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.rec-badge-callout.p4 {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.rec-badge-callout.conflict {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rec-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-card);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   AUTHENTICATION & "MY TEAMS" CONTEXT SWITCHER
   ========================================================================== */
.header-auth-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
}

.user-badge-pill .badge-sub {
  opacity: 0.85;
  font-size: 0.75rem;
}

.user-badge-pill.official-pill {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef3c7;
}

.my-teams-widget {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.my-teams-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e0f2fe;
  margin: 0;
  white-space: nowrap;
}

.my-teams-select {
  background: #ffffff;
  color: var(--blizzard-navy-900);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.my-teams-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

/* Auth Modal Tabs */
.auth-tabs-bar {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  padding: 0 1.25rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn:hover {
  color: var(--blizzard-blue-600);
}

.auth-tab-btn.active {
  color: var(--blizzard-navy-900);
  border-bottom-color: var(--blizzard-blue-600);
  font-weight: 700;
}

.auth-hint-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #166534;
}

.auth-hint-box ul {
  margin: 0.35rem 0 0 1.25rem;
  padding: 0;
}

.auth-hint-box code {
  background: #dcfce7;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}

.auth-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #1e40af;
  line-height: 1.4;
}

.affiliation-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.affiliation-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.affiliation-option:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.affiliation-option input[type="radio"]:checked + span {
  color: #1d4ed8;
  font-weight: 700;
}

.team-alignment-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}

.official-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #92400e;
  line-height: 1.4;
}

/* ==========================================================================
   AUDIT LOG TAB STYLES
   ========================================================================== */
.audit-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.audit-badge.reg {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.audit-badge.status {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.audit-badge.unreg {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.audit-badge.tourn {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.audit-badge.user {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.audit-badge.system {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.audit-role-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  background: #f3f4f6;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ==========================================================================
   AUTHENTICATION GATE SCREEN STYLES (Full Site Lock)
   ========================================================================== */
.auth-gate-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #091325 0%, #1e3a8a 55%, #1e40af 100%);
  padding: 2.5rem 1rem;
  box-sizing: border-box;
}

.auth-gate-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 2.25rem;
  box-sizing: border-box;
  animation: fadeInGate 0.25s ease-out;
}

@keyframes fadeInGate {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-gate-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.auth-gate-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-gate-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blizzard-navy-900, #0f172a);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.auth-gate-tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary, #475569);
  margin: 0.25rem 0 0 0;
  line-height: 1.3;
}

.auth-gate-header {
  margin-bottom: 1.25rem;
}

.auth-gate-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blizzard-navy-900, #0f172a);
  margin: 0;
}

.auth-gate-header p {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin: 0.3rem 0 0 0;
  line-height: 1.4;
}

.auth-gate-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.auth-gate-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-gate-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.auth-gate-tabs {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--radius-md, 8px);
  margin-bottom: 1.25rem;
}

.auth-gate-tab-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: calc(var(--radius-md, 8px) - 2px);
  background: transparent;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-gate-tab-btn.active {
  background: #ffffff;
  color: var(--blizzard-navy-900, #0f172a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 0.975rem;
  font-weight: 700;
}

.auth-gate-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* ==========================================================================
   DYNAMIC TEAM ALIGNMENT & USER DIRECTORY STYLES
   ========================================================================== */
.team-align-row {
  transition: all 0.15s ease-in-out;
}

.team-align-row:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.team-align-row .btn-remove-row:hover {
  background-color: #fee2e2;
  border-radius: 4px;
}

#usersTable th, #usersTable td {
  vertical-align: middle;
}

#usersTable .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* High-contrast Add Another Team button */
#btnGateAddTeamRow,
#btnModalAddTeamRow,
#btnProfileAddTeamRow,
.btn-add-team-row {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0369a1 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
}

#btnGateAddTeamRow:hover,
#btnModalAddTeamRow:hover,
#btnProfileAddTeamRow:hover,
.btn-add-team-row:hover {
  background-color: #0369a1 !important;
  border-color: #075985 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4) !important;
  transform: translateY(-1px);
}




