.promo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: promoFadeIn 0.2s ease-out;
}

@keyframes promoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.promo-modal {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-body) 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px var(--black-50);
  animation: promoSlideUp 0.3s ease-out;
  margin: 0 12px;
}

.promo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--white-10);
}

.promo-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.promo-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
}

.promo-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.promo-modal-close:hover {
  color: var(--text-primary);
  background: var(--white-8);
}

.promo-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.promo-bonus-title {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
}

.promo-bonus-subtitle {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-family: 'Proxima Nova', sans-serif;
}

.promo-banner {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.promo-how,
.promo-terms {
  margin-bottom: 16px;
}

.promo-how h3,
.promo-terms h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Proxima Nova', sans-serif;
}

.promo-how ol,
.promo-terms ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  font-family: 'Proxima Nova', sans-serif;
}

.promo-how ol li,
.promo-terms ol li {
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .promo-modal-overlay {
    align-items: flex-start;
    padding-top: 20px;
  }

  .promo-modal {
    max-width: 100%;
    margin: 0 8px;
    max-height: calc(100vh - 40px);
  }

  .promo-modal-body {
    padding: 16px;
  }

  .promo-modal-header {
    padding: 14px 16px;
  }
}

.login-container {
  background: var(--bg-elevated);
  border-radius: 10px;
  color: var(--text-primary);
  margin: 20px auto;
  max-width: 400px;
  padding: 20px;
  padding-top: 10px;
}

.login-container h2 {
  text-align: center;
  margin: 10px;
}

.login-title {
  text-align: center;
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
}

.login-label {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.input-with-icon {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 5px;
  padding: 8px;
}

.input-with-icon svg {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  stroke: var(--text-tertiary);
  fill: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-field {
  flex: 1 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  font-size: 16px;
}

.login-button {
  padding: 10px;
  background: var(--btn-auth-bg);
  border: none;
  border-radius: 5px;
  color: var(--link-blue-hover);
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.login-button:hover {
  background: var(--btn-auth-bg-hover);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.login-footer a {
  color: var(--link-blue-hover);
  text-decoration: none;
}

/* ResultsPage — rp- prefix */

.rp-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 80px 0;
}

/* Sticky Header (toolbar + sport tabs) */
.rp-sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-primary);
}

/* Toolbar: mode buttons + date + search in one row */
.rp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px 12px;
  border-bottom: 1px solid var(--bg-secondary);
}

/* Sport tabs inside results page */
.rp-sticky-header .st-tabs {
  border-bottom: 1px solid var(--bg-secondary);
  padding: 5px 0 0 0;
}

.rp-mode-btn {
  padding: 5px 12px;
  border: 1px solid transparent;
  background: #1a1d23;
  background: var(--bg-secondary, #1a1d23);
  color: #8a8f98;
  color: var(--text-secondary, #8a8f98);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
  box-sizing: border-box;
}

.rp-mode-btn.active {
  background: var(--accent-blue);
  color: var(--text-on-accent);
  border-color: transparent;
}

@media (hover: hover) {
  .rp-mode-btn:not(.active):hover {
    background: var(--hover-bg);
  }
}

.rp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: rp-pulse 1.5s ease-in-out infinite;
}

.rp-mode-btn.active .rp-live-dot {
  background: var(--text-on-accent);
}

@keyframes rp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Date buttons row */
.rp-date-buttons {
  display: flex;
  gap: 8px;
}

.rp-date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  background: #1a1d23;
  background: var(--bg-secondary, #1a1d23);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  gap: 0;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}

.rp-date-pill-day {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.rp-date-pill-month {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1;
  margin-top: 1px;
}

.rp-date-pill.active {
  background: var(--accent-blue);
  border-color: transparent;
}

.rp-date-pill.active .rp-date-pill-day,
.rp-date-pill.active .rp-date-pill-month {
  color: var(--text-on-accent);
}

@media (hover: hover) {
  .rp-date-pill:not(.active):hover {
    background: var(--hover-bg);
  }
}

/* Loading / Empty */
.rp-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.rp-empty {
  text-align: center;
  padding: 40px 0;
  color: #8a8f98;
  color: var(--text-secondary, #8a8f98);
  font-size: 14px;
}

/* Collapse All / Expand All row */
.rp-collapse-all-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 3px;
}

.rp-collapse-all-sport {
  font-family: 'Proxima Nova', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rp-collapse-all-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white-45);
  font-size: 12px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.rp-collapse-all-btn:active {
  opacity: 0.7;
}

/* League Group */
.rp-league-group {
}

/* League Header — sticky flex */
.rp-league-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: #14161a;
  background: var(--bg-primary, #14161a);
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  /* border-bottom: 1px solid var(--border-color, #2a2d35); */
  position: sticky;
  z-index: 10;
  text-transform: uppercase;
}

.rp-league-header.collapsed {
  border-bottom: 1px solid #2a2d35;
  border-bottom: 1px solid var(--border-color, #2a2d35);
}

.rp-league-flag {
  width: 18px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: contain;
}

.rp-league-name {
  flex: 1 1;
  font-size: 12px;
  font-weight: 600;
  color: #8a8f98;
  color: var(--text-secondary, #8a8f98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-chevron {
  color: #5a5f68;
  color: var(--text-tertiary, #5a5f68);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.rp-chevron.collapsed {
  transform: rotate(-90deg);
}

/* Match container */
.rp-match {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--bg-primary);
  border-radius: 6px;
  margin: 0 3px;
}

.rp-match:last-child {
  border-bottom: none;
}

.rp-star {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.rp-fav-sport-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white-45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-style: italic;
}

.rp-team-row-link {
  cursor: pointer;
}

/* Match Info Row — timer + period headers (above each match) */
.rp-match-info {
  padding: 3px 12px 1px;
  min-height: 18px;
  /* background: rgba(255, 255, 255, 0.02); */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.03); */
}

/* Timer cell — first column of info row */
.rp-timer-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* Period Headers (in info row) */
.rp-ph {
  font-size: 10px;
  font-weight: 600;
  color: #5a5f68;
  color: var(--text-tertiary, #5a5f68);
  text-align: center;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Team Row — grid layout */
.rp-team-row {
  padding: 4px 12px;
  min-height: 22px;
}

.rp-team-row-away {
  padding-top: 1px;
  padding-bottom: 5px;
}

/* Team Cell */
.rp-team-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 4px;
}

.rp-team-name {
  font-size: 12px;
  color: #e1e3e8;
  color: var(--text-primary, #e1e3e8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-team-name.rp-winner {
  font-weight: 600;
}

/* Status badges / timer elements */
.rp-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
  white-space: nowrap;
}

.rp-badge-ft {
  background: transparent;
  color: #5a5f68;
  color: var(--text-tertiary, #5a5f68);
  border: 1px solid #2a2d35;
  border: 1px solid var(--border-color, #2a2d35);
  font-size: 9px;
}

.rp-period-text {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-live);
  line-height: 1.1;
  white-space: nowrap;
}

.rp-minute {
  font-size: 9px;
  color: var(--color-live);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

/* Period Values */
.rp-pv {
  font-size: 11px;
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--white-45);
  text-align: center;
  line-height: 1;
}

.rp-pv.rp-period-win { color: var(--white-70); }
.rp-pv.rp-period-lose { color: var(--white-45); }

/* Total Score */
.rp-pv-total {
  font-size: 14px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--white-45);
  text-align: center;
  line-height: 1;
}

.rp-pv-total.rp-winner {
  color: #3b82f6;
  color: var(--accent-color, #3b82f6);
}

.rp-pv-total.rp-loser {
  color: var(--white-50);
}

/* BSO inline (in info row for baseball) */
.rp-bso {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.rp-bso-label {
  color: #5a5f68;
  color: var(--text-tertiary, #5a5f68);
  font-weight: 600;
  margin-left: 3px;
}

.rp-bso-val {
  color: #8a8f98;
  color: var(--text-secondary, #8a8f98);
  font-weight: 500;
}

/* Start time for finished matches */
.rp-start-time {
  font-size: 9px;
  font-weight: 500;
  color: #5a5f68;
  color: var(--text-tertiary, #5a5f68);
  white-space: nowrap;
}

/* ═══ Timer components inside info row ═══ */

/* Basketball timer */
.rp-timer-cell .basketball-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-live);
  white-space: nowrap;
  line-height: 1;
}

.rp-timer-cell .basketball-timer .basketball-quarter {
  color: var(--color-live);
  font-weight: 700;
}

.rp-timer-cell .basketball-timer .basketball-time {
  color: var(--color-live);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.rp-timer-cell .basketball-timer .basketball-time.stopped {
  color: rgba(239, 68, 68, 0.5);
}

.rp-timer-cell .basketball-timer .basketball-pause-icon {
  color: rgba(239, 68, 68, 0.5);
  flex-shrink: 0;
}

.rp-timer-cell .basketball-timer.halftime,
.rp-timer-cell .basketball-timer.break,
.rp-timer-cell .basketball-timer.fulltime {
  color: var(--color-live);
  font-weight: 700;
}

/* Hockey timer */
.rp-timer-cell .hockey-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-live);
  white-space: nowrap;
  line-height: 1;
}

.rp-timer-cell .hockey-timer .hockey-period {
  color: var(--color-live);
  font-weight: 700;
}

.rp-timer-cell .hockey-timer .hockey-time {
  color: var(--color-live);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.rp-timer-cell .hockey-timer .hockey-time.stopped {
  color: rgba(239, 68, 68, 0.5);
}

.rp-timer-cell .hockey-timer .hockey-pause-icon {
  color: rgba(239, 68, 68, 0.5);
  flex-shrink: 0;
}

.rp-timer-cell .hockey-timer.pause,
.rp-timer-cell .hockey-timer.fulltime,
.rp-timer-cell .hockey-timer.shootout {
  color: var(--color-live);
  font-weight: 700;
}

.rp-timer-cell .hockey-timer.overtime .hockey-period {
  color: #ffa500;
}

/* CardTimer (soccer/handball/water polo etc) */
.rp-timer-cell .fc-timer {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-live);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.rp-timer-cell .fc-timer-stopped {
  color: rgba(239, 68, 68, 0.5);
}

.rp-timer-cell .fc-pause-icon {
  color: rgba(239, 68, 68, 0.5);
  flex-shrink: 0;
}

/* Serving indicator cell (between periods and total) */
.rp-serve-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-serve-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.rp-serve-points {
  color: rgb(245, 197, 66);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 11px;
  margin-left: 3px;
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Responsive */

/* Tablet: 769-1023 — sidebar pushes content, sticky needs offset */
@media (min-width: 769px) and (max-width: 1023px) {
  .rp-sticky-header {
    top: 38px;
  }
}

/* Tablet: 769-1023 */
@media (min-width: 769px) and (max-width: 1023px) {
  .rp-league-header {
    top: 147px;
  }
}

/* Desktop: 1024+ */
@media (min-width: 1024px) {
  .rp-league-header {
    top: 109px;
  }
}

@media (min-width: 769px) {
  .rp-league-header.collapsed:hover {
    background: var(--hover-bg);
  }
}

/* Mobile: sticky header at top:36px (below navbar), height ~75px = 111px */
@media (max-width: 768px) {
  .rp-sticky-header {
    top: 36px;
  }

  .rp-league-header {
    top: 145px;
  }
}

@media (max-width: 480px) {
  .rp-toolbar {
    gap: 8px;
  }

  .rp-mode-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .rp-league-header {
    padding: 6px 8px;
  }

  .rp-match-info {
    padding: 3px 8px 1px;
  }

  .rp-team-row {
    padding: 3px 8px;
  }

  .rp-team-name {
    font-size: 11px;
  }

  .rp-pv {
    font-size: 10px;
  }

  .rp-pv-total {
    font-size: 13px;
  }
}

