/* --------------------------------------------------------
   CSS Variables
   -------------------------------------------------------- */
:root {
  --midnight-navy: #0B1F33;
  --signal-teal: #2ED1B2;
  --amber-gold: #F2B705;
}

/* --------------------------------------------------------
   Reset & base
   -------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f5;
  color: #0B1F33;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------
   Header
   -------------------------------------------------------- */
header {
  background: linear-gradient(135deg, #0B1F33 0%, #1F3A56 100%);
  color: #fff;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.header-left {
  text-align: left;
}

header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-on {
  color: #F4F7FA;
}

.brand-deck {
  color: #2ED1B2;
}

.subtitle {
  font-size: 0.78rem;
  color: #a0aec0;
  margin-top: 0.15rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Auth button in header */
.auth-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* User info when logged in */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-email {
  font-size: 0.75rem;
  color: #a0aec0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-badge {
  display: inline-block;
  background: var(--amber-gold);
  color: var(--midnight-navy);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logout-btn {
  background: transparent;
  color: #a0aec0;
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.logout-btn:hover {
  color: #fff;
}

/* --------------------------------------------------------
   Group Strip
   -------------------------------------------------------- */
.group-strip {
  background: #fff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}

.group-strip::-webkit-scrollbar {
  height: 4px;
}

.group-strip::-webkit-scrollbar-track {
  background: #f0f2f5;
}

.group-strip::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 2px;
}

.group-card {
  flex: 0 0 auto;
  width: auto;
  background: #f7fafc;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  max-width: 200px;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.2s;
  scroll-snap-align: start;
}

.group-card:hover {
  background: #edf2f7;
  border-color: #2ED1B2;
}

.group-card.active {
  background: #2ED1B2;
  border-color: #2ED1B2;
  color: #fff;
}

.group-card.active .group-card-meta {
  color: rgba(255, 255, 255, 0.8);
}

.group-card-add {
  background: transparent;
  border: 1px dashed #cbd5e0;
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-card-add:hover {
  background: #f7fafc;
  border-color: #2ED1B2;
  color: #2ED1B2;
}

.group-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-card-meta {
  font-size: 0.7rem;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-edit-icon {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-left: 0.25rem;
  cursor: pointer;
}

/* --------------------------------------------------------
   Group Editor
   -------------------------------------------------------- */
.group-editor {
  background: #fff;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.group-editor.hidden {
  display: none;
}

.group-editor-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.group-name-input {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.5rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  outline: none;
}

.group-name-input:focus {
  border-color: #2ED1B2;
  background: #fff;
}

.group-editor-actions {
  display: flex;
  gap: 0.5rem;
}

.group-save-btn,
.group-delete-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.group-save-btn {
  background: #2ED1B2;
  color: #fff;
}

.group-save-btn:hover {
  background: #26b89e;
}

.group-delete-btn {
  background: #f7fafc;
  color: #e53e3e;
  border: 1px solid #cbd5e0;
}

.group-delete-btn:hover {
  background: #fed7d7;
  border-color: #e53e3e;
}

/* Selected Teams Section */
.group-selected-teams {
  margin: 0.75rem 0;
}

.group-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.selected-teams-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #f7fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.selected-teams-list:empty::before {
  content: "No teams selected yet";
  color: #a0aec0;
  font-size: 0.875rem;
  font-style: italic;
}

.selected-team-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
}

/* Competitors special styling - distinct from regular teams */
.selected-team-competitors {
  background: #f7fafc;
  border-color: #9FB0C1;
}

.selected-team-competitors .selected-team-name {
  color: #4a5568;
  font-style: italic;
}

.selected-team-info {
  flex: 1;
  min-width: 0;
}

.selected-team-name {
  font-weight: 500;
  color: #2d3748;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-team-gym {
  font-size: 0.75rem;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-team-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #e53e3e;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.remove-team-btn:hover {
  background: #fed7d7;
}

/* --------------------------------------------------------
   Date Pills
   -------------------------------------------------------- */
.date-pills {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.date-pills::-webkit-scrollbar {
  display: none;
}

.date-pills:empty {
  display: none;
}

.date-pill {
  flex: 0 0 auto;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border: 1px solid #cbd5e0;
  border-radius: 20px;
  background: #f7fafc;
  color: #1F3A56;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.date-pill:hover {
  border-color: #2ED1B2;
  background: #edfaf6;
}

.date-pill.active {
  background: #2ED1B2;
  color: #fff;
  border-color: #2ED1B2;
}

/* --------------------------------------------------------
   Filters
   -------------------------------------------------------- */
.filters {
  background: #fff;
  padding: 1rem;
  gap: 2rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e2e8f0;
  max-height: none;
  overflow: visible;
  transition: max-height 0.2s ease-out, opacity 0.2s, padding 0.2s;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #718096;
}

.filter-group input,
.filter-group select {
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  color: #0B1F33;
  outline: none;
  transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #2ED1B2;
  background: #fff;
}

.filter-group input:focus::placeholder {
  color: transparent;
}

.filter-group-full {
  width: 100%;
  flex: 1 1 100% !important;
}

.filter-group-full input {
  width: 100%;
  box-sizing: border-box;
}

/* Advanced filters 2x2 grid */
.advanced-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.advanced-filter-row {
  display: flex;
  gap: 0.5rem;
}

.filter-group-half {
  flex: 1;
  min-width: 0;
}

.filter-group-half select {
  width: 100%;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  color: #0B1F33;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}

.filter-group-half select:focus {
  border-color: #2ED1B2;
  background-color: #fff;
}

/* Autocomplete dropdown */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  list-style: none;
  z-index: 20;
  display: none;
}

.autocomplete-list.open {
  display: block;
}

.autocomplete-list li {
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
  border-bottom: 1px solid #f0f0f0;
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.highlighted {
  background: #edfaf6;
}

/* Search result categories */
.autocomplete-list li.search-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #718096;
  background: #f7fafc;
  padding: 0.4rem 0.7rem 0.25rem;
  cursor: default;
  border-bottom: none;
}

.autocomplete-list li.search-category:hover {
  background: #f7fafc;
}

.search-result-meta {
  display: block;
  font-size: 0.78rem;
  color: #a0aec0;
  font-weight: 400;
}

/* Team checkboxes */
.team-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  max-height: 120px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.team-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #1F3A56;
  cursor: pointer;
  user-select: none;
}

.team-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2ED1B2;
  cursor: pointer;
}

/* Team add buttons (for group editing) */
.team-add-btn {
  background: #f7fafc;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.team-add-btn:hover:not(:disabled) {
  background: #2ED1B2;
  color: #fff;
  border-color: #2ED1B2;
}

.team-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.team-add-btn.team-at-limit {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filter actions row */
.filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  flex-basis: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.25rem;
}

.filter-actions .filter-actions-right {
  margin-left: auto;
}

.filter-actions-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Competitors toggle in action row */
.competitors-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #1F3A56;
  cursor: pointer;
}

.competitors-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2ED1B2;
  cursor: pointer;
}

.competitors-text {
  font-weight: 500;
}

/* Clear button */
.clear-btn {
  background: none;
  border: none;
  color: #2ED1B2;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.2rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clear-btn:hover {
  color: #24B899;
}


/* --------------------------------------------------------
   Results bar
   -------------------------------------------------------- */
.results-bar {
  padding: 0.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 11;
}

.results-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#result-count {
  font-size: 0.82rem;
  color: #718096;
  font-weight: 600;
}

/* Sign-in prompt banner */
.signin-prompt {
  background: #fffbeb;
  border-top: 1px solid #fcd34d;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: #92400e;
  text-align: center;
}

.signin-prompt a {
  color: #2ED1B2;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signin-prompt a:hover {
  color: #24B899;
}

/* --------------------------------------------------------
   Schedule / Day groups
   -------------------------------------------------------- */
main {
  padding: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.day-group {
  margin-bottom: 1.25rem;
}

.day-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1F3A56;
  border-bottom: 2px solid #2ED1B2;
  padding-bottom: 0.35rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.day-header .entry-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: #a0aec0;
}

/* --------------------------------------------------------
   Entry cards
   -------------------------------------------------------- */
.entry-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0 0.7rem;
  align-items: start;
}

.entry-time {
  font-size: 1rem;
  font-weight: 700;
  color: #2ED1B2;
  padding-top: 0.05rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.entry-main {
  min-width: 0;
}

.entry-team-line {
  font-size: 1rem;
  color: #0B1F33;
  line-height: 1.3;
}

.entry-team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0B1F33;
  margin-bottom: 0.1rem;
}

.entry-gym-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: #718096;
}

.entry-details {
  font-size: 0.82rem;
  color: #718096;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-hall {
  display: inline-block;
  background: #edfaf6;
  color: #1F3A56;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* --------------------------------------------------------
   "On Deck" highlight
   -------------------------------------------------------- */
.entry-card.entry-next {
  border-left: 3px solid #2ED1B2;
  background: #fff;
}

/* --------------------------------------------------------
   Selected team highlight
   -------------------------------------------------------- */
.entry-card.entry-selected {
  background: #e0f5ec;
}

.next-badge {
  display: inline-block;
  background: #2ED1B2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------------
   Empty state
   -------------------------------------------------------- */
.empty-state {
  text-align: center;
  color: #a0aec0;
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.refresh-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  background: #2ED1B2;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.refresh-btn:hover {
  background: #24B899;
}

.refresh-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

/* --------------------------------------------------------
   Footer
   -------------------------------------------------------- */
footer {
  max-width: 700px;
  margin: 2rem auto 1.5rem;
  padding: 0 1rem;
  text-align: center;
}

.disclaimer {
  font-size: 0.75rem;
  color: #a0aec0;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer-links {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
}

.footer-links a:hover {
  color: #2ED1B2;
}

.donation-message {
  font-size: 0.82rem;
  color: #1F3A56;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.donation-btn {
  display: inline-block;
  background: #2ED1B2;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.donation-btn:hover {
  background: #24B899;
}

/* --------------------------------------------------------
   Responsive: wider screens get horizontal filter row
   -------------------------------------------------------- */
@media (min-width: 600px) {
  .filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    top: 0;
  }

  .filter-group {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .team-checkboxes {
    max-height: 80px;
  }

  .clear-btn {
    align-self: center;
  }

  .group-editor-header {
    max-width: 700px;
    margin: 0 auto;
  }

  .group-strip {
    max-width: 700px;
    margin: 0 auto;
  }
}

/* Mobile adjustments for groups */
@media (max-width: 600px) {
  .group-strip {
    padding: 0.5rem 0.75rem;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .group-card {
    min-width: 100px !important;
    width: 140px !important;
    flex: 0 0 140px !important;
    padding: 0.4rem 0.6rem;
  }

  .group-card-name {
    font-size: 0.8rem;
  }

  .group-card-meta {
    font-size: 0.65rem;
  }

  .group-name-input {
    font-size: 0.8rem;
  }

  .group-save-btn,
  .group-delete-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Mobile: show filter toggle in results bar */
@media (max-width: 599px) {
  /* Mobile header adjustments */
  header {
    padding: 0.75rem 0.5rem;
  }

  .header-content {
    align-items: flex-start;
  }

  header h1 {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .subtitle {
    display: none; /* Hide subtitle on mobile to save space */
  }

  .header-right {
    gap: 0.3rem;
  }

  .user-email {
    display: none; /* Hide email on mobile to save space */
  }

  .premium-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
  }

  .auth-btn, .logout-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .referral-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .results-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (min-width: 900px) {
  .filters {
    max-width: 700px;
    margin: 0 auto;
  }

  .results-bar {
    max-width: 700px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------
   Utility classes
   -------------------------------------------------------- */
.hidden {
  display: none !important;
}

/* --------------------------------------------------------
   Modal
   -------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #718096;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover {
  color: #0B1F33;
}

/* --------------------------------------------------------
   Auth Modal
   -------------------------------------------------------- */
.auth-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1F3A56;
  margin: 0 0 1.25rem;
}

.waitlist-cta {
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  margin: 1rem 0 0;
}

.waitlist-cta a {
  color: #2ED1B2;
  text-decoration: none;
  font-weight: 500;
}

.waitlist-cta a:hover {
  text-decoration: underline;
}

.auth-error {
  background: #fed7d7;
  color: #c53030;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.error-message {
  color: #d32f2f;
  padding: 0.75rem;
  margin: 1rem 0;
  background: #ffebee;
  border-radius: 8px;
  border-left: 4px solid #d32f2f;
}

.error-message.hidden {
  display: none;
}

.success-message {
  color: #2e7d32;
  padding: 0.75rem;
  margin: 1rem 0;
  background: #e8f5e9;
  border-radius: 8px;
  border-left: 4px solid #2e7d32;
  font-weight: 500;
}

.success-message.hidden {
  display: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1F3A56;
}

.form-group input {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #2ED1B2;
  background: #fff;
}

.auth-submit-btn {
  background: #2ED1B2;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-submit-btn:hover {
  background: #24B899;
}

.auth-submit-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 0.75rem;
  color: #a0aec0;
  font-size: 0.82rem;
}

.google-signin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #1F3A56;
  border: 1px solid #e2e8f0;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.google-signin-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

/* --------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0B1F33;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.toast-error {
  background: #c53030;
}

.toast.toast-success {
  background: #276749;
}

/* --------------------------------------------------------
   Gated features (for Scope 3)
   -------------------------------------------------------- */
.locked-feature {
  opacity: 0.7;
  cursor: pointer;
}

.locked-feature input {
  pointer-events: none;
}

.locked-badge {
  display: inline-block;
  background: #F2B705;
  color: #0B1F33;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  text-transform: uppercase;
}

/* Team at limit state */
.team-at-limit {
  opacity: 0.5;
  cursor: not-allowed;
}

.team-at-limit input {
  cursor: not-allowed;
}

/* --------------------------------------------------------
   Waitlist Modal
   -------------------------------------------------------- */
.waitlist-modal-content {
  text-align: center;
}

.waitlist-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B1F33;
  margin-bottom: 0.5rem;
}

.waitlist-description {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.waitlist-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: #2ED1B2;
  background: #fff;
}

.waitlist-submit-btn {
  background: #2ED1B2;
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.waitlist-submit-btn:hover {
  background: #24B899;
}

.waitlist-submit-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.waitlist-success {
  background: #c6f6d5;
  color: #276749;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.waitlist-error {
  background: #fed7d7;
  color: #c53030;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------
   Premium Prompt Modal (for logged-in users)
   -------------------------------------------------------- */
.premium-prompt-content {
  text-align: center;
  max-width: 380px;
}

.premium-prompt-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B1F33;
  margin-bottom: 0.5rem;
}

.premium-prompt-description {
  font-size: 0.9rem;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.premium-prompt-question {
  font-size: 1rem;
  color: #0B1F33;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.premium-prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.premium-prompt-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.premium-prompt-yes {
  background: #2ED1B2;
  color: #fff;
  border: none;
}

.premium-prompt-yes:hover {
  background: #24B899;
}

.premium-prompt-yes:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.premium-prompt-no {
  background: transparent;
  color: #718096;
  border: 1px solid #cbd5e0;
}

.premium-prompt-no:hover {
  border-color: #a0aec0;
  color: #4a5568;
}

/* --------------------------------------------------------
   Premium Waitlist Checkbox (in signup forms)
   -------------------------------------------------------- */
.premium-waitlist-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4a5568;
  cursor: pointer;
  margin: 0.5rem 0;
}

.premium-waitlist-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.premium-waitlist-label span {
  user-select: none;
}


/* --------------------------------------------------------
   FAQ (shared: onboarding step + help modal)
   -------------------------------------------------------- */
.faq-item {
  text-align: left;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1F3A56;
  margin-bottom: 0.25rem;
}

.faq-item p {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.5;
}

.faq-link {
  color: #2ED1B2;
  text-decoration: none;
  font-weight: 500;
}

.faq-link:hover {
  text-decoration: underline;
}

.help-faq-content {
  margin-top: 1rem;
}

/* --------------------------------------------------------
   Upgrade Modal
   -------------------------------------------------------- */
.upgrade-modal-content {
  max-width: 500px;
  width: 90%;
}

.upgrade-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.upgrade-header h2 {
  font-size: 1.5rem;
  color: #0B1F33;
  margin-bottom: 0.5rem;
}

.upgrade-subtitle {
  font-size: 0.9rem;
  color: #718096;
}

.upgrade-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pricing Section */
.upgrade-pricing {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #2ED1B2 0%, #1FB89A 100%);
  border-radius: 12px;
  color: white;
}

.price-badge {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-strikethrough {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.7;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  opacity: 0.9;
}

.price-description {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Features List */
.upgrade-features {
  padding: 1rem;
  background: #F7FAFC;
  border-radius: 8px;
}

.upgrade-features h3 {
  font-size: 1rem;
  color: #0B1F33;
  margin-bottom: 0.75rem;
}

.upgrade-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upgrade-features li {
  font-size: 0.85rem;
  color: #4A5568;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Button */
.upgrade-cta-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #0B1F33 0%, #1F3A56 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.upgrade-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 31, 51, 0.3);
}

.upgrade-cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upgrade-cta-secondary {
  background: linear-gradient(135deg, #2ED1B2 0%, #1FB89A 100%);
  margin-top: 0.75rem;
}

.upgrade-cta-secondary:hover {
  box-shadow: 0 4px 12px rgba(46, 209, 178, 0.3);
}

/* Bundle Upsell */
.upgrade-bundle {
  padding: 1.5rem;
  background: #F7FAFC;
  border-radius: 8px;
  text-align: center;
  border: 2px dashed #CBD5E0;
}

.upgrade-bundle-header {
  font-size: 1rem;
  font-weight: 600;
  color: #0B1F33;
  margin-bottom: 0.5rem;
}

.upgrade-bundle-text {
  font-size: 0.9rem;
  color: #4A5568;
  margin-bottom: 0;
}

.upgrade-bundle-savings {
  color: #2ED1B2;
  font-weight: 600;
}

/* Referral Section */
.upgrade-referral {
  padding: 1.5rem;
  background: #F7FAFC;
  border-radius: 8px;
  border: 2px dashed #CBD5E0;
}

.referral-divider {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.referral-divider::before,
.referral-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #CBD5E0;
}

.referral-divider::before {
  left: 0;
}

.referral-divider::after {
  right: 0;
}

.referral-divider span {
  font-size: 0.75rem;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F7FAFC;
  padding: 0 0.5rem;
}

.upgrade-referral h3 {
  font-size: 1.1rem;
  color: #0B1F33;
  margin-bottom: 0.5rem;
  text-align: center;
}

.referral-description {
  font-size: 0.85rem;
  color: #4A5568;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}

.referral-link-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.referral-link-container input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #CBD5E0;
  border-radius: 6px;
  font-size: 0.85rem;
  background: white;
  color: #4A5568;
}

.copy-referral-btn {
  padding: 0.75rem 1rem;
  background: #2ED1B2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.copy-referral-btn:hover {
  background: #1FB89A;
}

.referral-note {
  font-size: 0.75rem;
  color: #A0AEC0;
  text-align: center;
  font-style: italic;
}

/* --------------------------------------------------------
   Referral Button (Header)
   -------------------------------------------------------- */
.referral-btn {
  background: linear-gradient(135deg, #2ED1B2 0%, #1FB89A 100%);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.referral-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(46, 209, 178, 0.3);
}

/* --------------------------------------------------------
   Referral Modal
   -------------------------------------------------------- */
.referral-modal-content {
  max-width: 500px;
  width: 90%;
}

.referral-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.referral-modal-header h2 {
  font-size: 1.5rem;
  color: #0B1F33;
  margin-bottom: 0.5rem;
}

.referral-subtitle {
  font-size: 0.9rem;
  color: #718096;
}

.referral-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.referral-how-it-works {
  padding: 1rem;
  background: #F7FAFC;
  border-radius: 8px;
}

.referral-how-it-works h3 {
  font-size: 1rem;
  color: #0B1F33;
  margin-bottom: 0.75rem;
}

.referral-how-it-works ol {
  margin: 0;
  padding-left: 1.25rem;
}

.referral-how-it-works li {
  font-size: 0.85rem;
  color: #4A5568;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.referral-link-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.referral-link-section label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4A5568;
}

.referral-terms {
  font-size: 0.75rem;
  color: #A0AEC0;
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* --------------------------------------------------------
   Competition Switcher Modal
   -------------------------------------------------------- */
.competition-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  max-height: 400px;
  overflow-y: auto;
}

.competition-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.competition-card:hover {
  border-color: #2ED1B2;
  background: #F7FAFC;
}

.competition-card.selected {
  border-color: #2ED1B2;
  background: #E6FFFA;
}

.competition-radio {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.competition-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.competition-details {
  flex: 1;
  cursor: pointer;
}

.competition-name {
  font-weight: 600;
  font-size: 1rem;
  color: #0B1F33;
  margin-bottom: 0.25rem;
}

.competition-dates {
  font-size: 0.875rem;
  color: #4A5568;
  margin-bottom: 0.25rem;
}

.competition-location {
  font-size: 0.875rem;
  color: #718096;
}

.competition-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.competition-cancel-btn,
.competition-switch-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.competition-cancel-btn {
  background: #F7FAFC;
  color: #4A5568;
}

.competition-cancel-btn:hover {
  background: #E2E8F0;
}

.competition-switch-btn {
  background: #2ED1B2;
  color: white;
}

.competition-switch-btn:hover {
  background: #26BBA1;
}

.info-message {
  padding: 1rem;
  background: #EBF8FF;
  border-left: 4px solid #4299E1;
  color: #2C5282;
  border-radius: 8px;
  margin: 1rem 0;
}

/* --------------------------------------------------------
   "Not Competing" Section
   -------------------------------------------------------- */
.not-competing-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #E2E8F0;
}

.not-competing-header {
  margin-bottom: 1rem;
}

.not-competing-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4A5568;
  margin: 0 0 0.5rem;
}

.not-competing-desc {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
}

.not-competing-card {
  opacity: 0.5;
  cursor: default;
  background: #F7FAFC;
}

.not-competing-card:hover {
  background: #F7FAFC;
  box-shadow: none;
}

.not-competing-label {
  font-style: italic;
  color: #A0AEC0;
}

/* --------------------------------------------------------
   Schedule Update Modal
   -------------------------------------------------------- */
.schedule-update-content {
  max-width: 420px;
  text-align: center;
  padding: 2rem 1.5rem;
}

.schedule-update-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--midnight-navy);
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.schedule-update-message {
  font-size: 1rem;
  color: var(--midnight-navy);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.schedule-update-message a {
  color: var(--signal-teal);
  text-decoration: underline;
  font-weight: 600;
}

.schedule-update-message a:hover {
  color: #26B89F;
}

.schedule-update-actions {
  margin-top: 1.5rem;
}

.schedule-update-btn-primary {
  width: 100%;
  padding: 1.25rem 2rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--midnight-navy);
  min-height: 56px;
  background: var(--midnight-navy);
  color: white;
  transition: all 0.2s ease;
}

.schedule-update-btn-primary:hover {
  background: var(--signal-teal);
  color: var(--midnight-navy);
}

.schedule-update-btn-primary:active {
  background: #26B89F;
  color: var(--midnight-navy);
}

@media (min-width: 768px) {
  .schedule-update-content {
    padding: 2.5rem 2rem;
  }
}

/* --------------------------------------------------------
   Competition Selector Modal - A/B Test Variants
   -------------------------------------------------------- */

/* Modal Overlay */
.comp-selector-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.comp-selector-modal .modal-overlay.active {
  opacity: 1;
}

/* Modal Content */
.comp-selector-modal .modal-content {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  padding: 24px 16px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 101;
}

.comp-selector-modal .modal-content.active {
  transform: translateY(0);
}

.comp-selector-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.comp-selector-modal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #0B1F33;
}

.comp-selector-modal .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Accordion Variant */
.month-accordion .month-section {
  margin-bottom: 8px;
}

.month-accordion .month-header {
  background: #f0f0f0;
  padding: 12px 16px;
  font-weight: 600;
  color: #0B1F33;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.month-accordion .month-header:hover {
  background: #e5e5e5;
}

.month-accordion .chevron {
  transition: transform 0.2s;
}

.month-accordion .month-section.collapsed .chevron {
  transform: rotate(-90deg);
}

.month-accordion .month-content {
  padding: 8px 0;
  display: block;
}

.month-accordion .month-section.collapsed .month-content {
  display: none;
}

/* Tabs Variant */
.comp-selector-modal.tabs-variant .modal-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.tabs-container {
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid #eee;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 12px 20px;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab:hover {
  color: #2ED1B2;
}

.tab.active {
  color: #2ED1B2;
  border-bottom-color: #2ED1B2;
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.tab-panel {
  display: none;
}

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

.tabs-variant .modal-header {
  padding: 24px 16px 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}

/* Competition Cards */
.comp-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.comp-card:hover {
  border-color: #2ED1B2;
  box-shadow: 0 2px 8px rgba(46, 209, 178, 0.1);
}

.comp-card.unavailable {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f9f9f9;
}

.comp-card.unavailable:hover {
  border-color: #ddd;
  box-shadow: none;
}

.comp-card.selected {
  border-color: #2ED1B2;
  background: #f0fdf9;
  box-shadow: 0 0 0 2px rgba(46, 209, 178, 0.2);
}

.comp-name {
  font-weight: 600;
  color: #0B1F33;
  margin-bottom: 4px;
  font-size: 15px;
}

.comp-dates {
  color: #666;
  font-size: 13px;
  margin-bottom: 4px;
}

.comp-location {
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
}

.comp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.status-badge.available {
  background: #d4f4e7;
  color: #0a7d4a;
}

.status-badge.unavailable {
  background: #f0f0f0;
  color: #666;
}

.last-updated {
  color: #999;
  font-size: 11px;
}

.email-link {
  color: #2ED1B2;
  text-decoration: none;
  font-size: 12px;
  display: block;
  margin-top: 8px;
}

.email-link:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top-color: #2ED1B2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

.loading-spinner div:last-child {
  color: #666;
  font-size: 14px;
  font-weight: 500;
}
