/* V8MyBetsPage - My Bets Page Styles */
/* Uses CSS variables to match app theme */

.v8mb-page {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-bottom: 80px;
}

/* Header - compact 44px like other pages */
.v8mb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--separator);
  position: sticky;
  top: 0;
  z-index: 101;
  height: 44px;
  box-sizing: border-box;
}

.v8mb-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .v8mb-back-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
  }
}

.v8mb-back-btn:active {
  background-color: var(--bg-tertiary);
}

.v8mb-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Filters */
.v8mb-filters {
  position: sticky;
  top: 44px;
  z-index: 100;
  padding: 10px 10px 12px 10px;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* Quick Filters */
.v8mb-date-filters {
  display: flex;
  gap: 6px;
}

.v8mb-date-filters button {
  flex: 1 1;
  padding: 8px 10px;
  background-color: var(--bg-tertiary);
  border: none;
  border-radius: 6px;
  color: var(--text-tertiary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

@media (hover: hover) {
  .v8mb-date-filters button:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
  }
}

.v8mb-date-filters button.v8mb-active {
  background-color: var(--accent-blue);
  color: var(--text-on-accent);
}

/* Advanced Filters */
.v8mb-extra-filters {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.v8mb-filter-group {
  position: relative;
  flex: 1 1;
}

/* Date Input with Calendar Icon */
.v8mb-filter-group.v8mb-date-filter {
  position: relative;
}

.v8mb-filter-group.v8mb-date-filter::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke=%27%23888%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z%27/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.v8mb-filter-group input[type="date"] {
  width: 100%;
  height: 100%;
  padding: 8px 10px 8px 30px;
  border: none;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

@media (hover: hover) {
  .v8mb-filter-group input[type="date"]:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
  }
}

/* Date Range Display (for "Last 7 days") */
.v8mb-date-range-display {
  width: 100%;
  height: 100%;
  padding: 8px 10px 8px 30px;
  border: none;
  border-radius: 6px;
  background-color: var(--accent-blue-muted);
  color: var(--accent-blue);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Hide default calendar icon */
.v8mb-filter-group input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Select with Dropdown Arrow */
.v8mb-filter-group.v8mb-status-filter {
  position: relative;
}

.v8mb-filter-group.v8mb-status-filter::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 24 24%27 stroke=%27%23888%27%3E%3Cpath stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M19 9l-7 7-7-7%27/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.v8mb-filter-group select {
  width: 100%;
  height: 100%;
  padding: 8px 28px 8px 10px;
  border: none;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-family: 'Proxima Nova', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

@media (hover: hover) {
  .v8mb-filter-group select:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
  }
}

.v8mb-filter-group input[type="date"]:focus,
.v8mb-filter-group select:focus {
  outline: none;
}

/* Clear Button */
.v8mb-clear-filters {
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background-color: var(--bg-tertiary);
  color: var(--accent-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

@media (hover: hover) {
  .v8mb-clear-filters:hover {
    background-color: var(--accent-red);
    color: var(--text-primary);
  }
}

.v8mb-clear-filters svg {
  width: 14px;
  height: 14px;
}

/* Bets List */
.v8mb-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v8mb-loading,
.v8mb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
  gap: 12px;
}

.v8mb-empty svg {
  opacity: 0.4;
}

/* Bet Card */
.v8mb-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.v8mb-card-won {
  border-left: 3px solid #1ca31c;
}

.v8mb-card-lost {
  border-left: 3px solid #d83030;
}

.v8mb-card-void,
.v8mb-card-cancelled {
  border-left: 3px solid #666;
  opacity: 0.8;
}

.v8mb-card-pending {
  border-left: 3px solid #c9a542;
}

/* Card Header */
.v8mb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--separator);
  border-radius: 8px 8px 0 0;
}

.v8mb-card-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v8mb-type-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.v8mb-type-single {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.v8mb-type-multiple {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  /* font-size: 10px; */
}

.v8mb-bet-id-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v8mb-bet-id {
  font-size: 11px;
  color: var(--text-tertiary);
}

.v8mb-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .v8mb-copy-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-blue);
  }
}

.v8mb-copy-btn:active {
  background-color: var(--bg-tertiary);
  transform: scale(0.95);
}

.v8mb-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v8mb-date {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Status Badges */
.v8mb-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.v8mb-status-pending {
  background: #c9a542;
  color: var(--text-on-accent);
}

.v8mb-status-won {
  background: #1ca31c;
  color: var(--text-on-accent);
}

.v8mb-status-lost {
  background: #d83030;
  color: var(--text-on-accent);
}

.v8mb-status-void,
.v8mb-status-cancelled {
  background: #666;
  color: var(--text-on-accent);
}

/* Bet Leg */
.v8mb-leg {
  padding: 8px 10px 10px 10px;
}

.v8mb-leg-multiple {
  padding-bottom: 10px;
  border-bottom: 3px dotted var(--bg-body);
}

.v8mb-leg-multiple:last-child {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: none;
}

.v8mb-leg-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
  margin-left: 2px;
}

.v8mb-leg-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v8mb-live-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 2px;
  background: #d83030;
  color: var(--text-on-accent);
  border-radius: 2px;
}

.v8mb-prematch-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v8mb-prematch-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--accent-blue);
  color: var(--text-on-accent);
  border-radius: 2px;
}

.v8mb-start-time {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.v8mb-vs {
  color: #c9a542;
  font-weight: 700;
}

.v8mb-leg-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: 5px;
  min-width: 0;
}

.v8mb-leg-league > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.v8mb-sport-icon {
  opacity: 0.7;
}

.v8mb-leg-teams {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0px;
  padding-left: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.v8mb-teams-link {
  color: var(--accent-blue);
  cursor: pointer;
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.v8mb-teams-link:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

.v8mb-leg-period-market {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.v8mb-leg-selection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  /* margin-bottom: 10px; */
  padding: 10px 5px;
  border-top: 1px solid var(--separator-light);
  /* border-bottom: 1px solid #4c4c4f; */
}

.v8mb-selection-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v8mb-selection-param {
  font-size: 13px;
  color: var(--score-color);
  font-weight: 700;
}

.v8mb-selection-odds {
  font-size: 13px;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  margin-left: auto;
}

/* Scores */
.v8mb-scores {
  display: flex;
  gap: 16px;
  padding: 8px 10px;
  background-color: var(--bg-primary);
  border-radius: 2px;
}

.v8mb-score-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v8mb-score-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  min-width: 40px;
}

.v8mb-score-value {
  font-size: 12px;
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Basketball timer in my bets */
.v8mb-basketball-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white-90);
}

.v8mb-basketball-timer .basketball-quarter {
  color: var(--white-90);
}

.v8mb-basketball-timer .basketball-time {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.v8mb-basketball-timer.halftime,
.v8mb-basketball-timer.break,
.v8mb-basketball-timer.fulltime {
  color: var(--white-70);
}

/* Hockey timer styles */
.v8mb-hockey-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white-90);
}

.v8mb-hockey-timer .hockey-period {
  color: var(--white-90);
}

.v8mb-hockey-timer .hockey-time {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.v8mb-hockey-timer.pause,
.v8mb-hockey-timer.fulltime,
.v8mb-hockey-timer.shootout {
  color: var(--white-70);
}

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

/* Live indicator dot - shows game is currently in progress */
.v8mb-live-dot {
  width: 4px;
  height: 4px;
  background: #d83030;
  border-radius: 50%;
  /* Smaller, no animation */
}

/* Card Footer (Money) */
.v8mb-card-footer {
  padding: 10px 12px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--separator);
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  border-radius: 0 0 8px 8px;
}

/* Single footer - 3 columns */
.v8mb-footer-single {
  grid-template-columns: repeat(3, 1fr);
}

/* Multiple footer - 4 columns */
.v8mb-footer-multiple {
  grid-template-columns: repeat(4, 1fr);
}

.v8mb-money-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v8mb-money-label {
  font-size: 9px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.v8mb-money-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.v8mb-outcome-won {
  color: #1ca31c !important;
}

.v8mb-outcome-lost {
  color: #d83030 !important;
}

.v8mb-outcome-void,
.v8mb-outcome-cancelled {
  color: var(--text-tertiary) !important;
}

/* Multiple legs container */
.v8mb-legs-container {
  border-top: 1px solid var(--separator);
}

/* Responsive */
@media (max-width: 1023px) {
  .v8mb-header {
    top: 36px;
  }
  .v8mb-filters {
    top: 80px;
  }
}

@media (max-width: 768px) {
  .v8mb-filters {
    padding: 8px 8px 10px 8px;
  }

  .v8mb-date-filters {
    gap: 4px;
  }

  .v8mb-date-filters button {
    padding: 5px 6px;
    font-size: 11px;
  }

  .v8mb-extra-filters {
    gap: 4px;
  }

  .v8mb-filter-group input[type="date"] {
    padding: 5px 6px 5px 24px;
    font-size: 11px;
  }

  .v8mb-filter-group select {
    padding: 5px 22px 5px 6px;
    font-size: 11px;
  }

  .v8mb-date-range-display {
    padding: 5px 6px 5px 24px;
    font-size: 11px;
  }

  .v8mb-filter-group.v8mb-date-filter::before {
    left: 6px;
    width: 12px;
    height: 12px;
  }

  .v8mb-filter-group.v8mb-status-filter::after {
    right: 6px;
    width: 8px;
    height: 8px;
  }

  .v8mb-clear-filters {
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .v8mb-card-header {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .v8mb-card-type {
    flex: 1 1;
    min-width: 0;
    display: flex;
    gap: 4px;
  }

  .v8mb-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .v8mb-bet-id-wrapper {
    flex: 1 1;
    min-width: 0;
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .v8mb-bet-id {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .v8mb-copy-btn {
    flex-shrink: 0;
  }

  .v8mb-date {
    font-size: 10px;
  }

  .v8mb-card-meta {
    flex-shrink: 0;
    display: flex;
    gap: 6px;
  }

  .v8mb-scores {
    flex-direction: column;
    gap: 6px;
  }

  /* Compact footer on mobile */
  .v8mb-card-footer {
    gap: 10px;
  }

  .v8mb-money-label {
    font-size: 8px;
  }

  .v8mb-money-value {
    font-size: 12px;
  }
}

@media (min-width: 1025px) {
  .v8mb-page {
    max-width: 800px;
    margin: 0 auto;
  }

  .v8mb-date-filters {
    max-width: 400px;
  }

  .v8mb-filters {
    margin-bottom: 8px;
  }
}

/* Focus states */
.v8mb-date-filters button:focus,
.v8mb-filter-group input:focus,
.v8mb-filter-group select:focus,
.v8mb-clear-filters:focus {
  outline: none;
}

/* Smooth transitions */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Toast animation for copy notification */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  10%, 90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* PendingBetsWidget - CSS overrides for widget context */

.pbw-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.pbw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--separator);
  min-height: 40px;
}

.pbw-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pbw-view-all {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pbw-view-all:hover {
  color: var(--text-primary);
}

.pbw-list {
  flex: 1 1;
  overflow-y: auto;
}

/* Override v8mb-card to remove overflow hidden in widget */
.pbw-container .v8mb-card {
  overflow: visible;
}

/* Override scores layout for widget */
.pbw-container .v8mb-scores {
  flex-direction: column;
  gap: 5px;
}

.pbw-container .v8mb-score-value {
  font-size: 10px;
  font-weight: 500;
}

/* PWA Install Prompt */
.pwa-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  padding: 0 16px 16px;
  animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-prompt--closing {
  animation: pwaSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.pwa-prompt__container {
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #1c1c1e, #2a2a2c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.pwa-prompt__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pwa-prompt__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.pwa-prompt__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pwa-prompt__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-prompt__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-prompt__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-prompt__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Proxima Nova', sans-serif;
}

.pwa-prompt__name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Proxima Nova', sans-serif;
}

.pwa-prompt__instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pwa-prompt__step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-prompt__step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3a3c 0%, #4a4a4c 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Proxima Nova', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-prompt__step-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  font-family: 'Proxima Nova', sans-serif;
}

.pwa-prompt__step-text strong {
  color: #ffffff;
  font-weight: 600;
}

.pwa-prompt__icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 2px;
}

.pwa-prompt__icon-share {
  color: #fff;
}

.pwa-prompt__icon-menu {
  color: rgba(255, 255, 255, 0.8);
}

.pwa-prompt__btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Proxima Nova', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #3a3a3c 0%, #4a4a4c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-prompt__btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4a4a4c 0%, #5a5a5c 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.pwa-prompt__btn:active {
  transform: translateY(0);
}

/* Arrow pointing down for iOS Safari */
.pwa-prompt::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #2a2a2c;
}

/* ParticipantIcon - team icons from participants database */

.participant-icon {
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Size presets */
.participant-icon--small {
  width: 16px;
  height: 16px;
}

.participant-icon--medium {
  width: 20px;
  height: 20px;
}

.participant-icon--large {
  width: 24px;
  height: 24px;
}

/* Prevent layout shift when icon fails to load */
.participant-icon:not([src]) {
  display: none;
}

/* Visible placeholder while loading or if icon unavailable */
.participant-icon-placeholder {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
}

.participant-icon-placeholder.participant-icon--small {
  width: 16px;
  height: 16px;
}

.participant-icon-placeholder.participant-icon--medium {
  width: 20px;
  height: 20px;
}

.participant-icon-placeholder.participant-icon--large {
  width: 24px;
  height: 24px;
}

/* Doubles - two icons side by side */
.participant-icon-doubles {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.participant-icon-doubles--small {
  gap: 1px;
}

.participant-icon-doubles--medium {
  gap: 2px;
}

.participant-icon-doubles--large {
  gap: 2px;
}

.participant-icon-doubles .participant-icon--second {
  margin-left: -6px;
}

.participant-icon-doubles .participant-icon-placeholder.participant-icon--second {
  margin-left: -6px;
}

/* ParticipantInfo - displays extended info for Tennis/MMA participants */

.participant-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 10px;
  color: #8b9199;
  color: var(--text-secondary, #8b9199);
  margin-top: 1px;
  flex-wrap: nowrap;
  line-height: 1.2;
}

/* Country flag */
.participant-info-flag {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Rank text (WTA: 59, ATP: 105) */
.participant-info-rank {
  font-weight: 500;
  color: #f5a623;
  color: var(--accent-color, #f5a623);
  white-space: nowrap;
}

/* Separator bullet */
.participant-info-sep {
  color: #6c757d;
  color: var(--text-muted, #6c757d);
  font-size: 8px;
}

/* Birthday and age */
.participant-info-age {
  white-space: nowrap;
  color: #6c757d;
  color: var(--text-tertiary, #6c757d);
}

/* Compact mode for tight spaces */
.participant-info.compact {
  font-size: 9px;
  gap: 3px;
}

.participant-info.compact .participant-info-flag {
  width: 12px;
  height: 8px;
}

/* Light theme adjustments */
[data-theme="light"] .participant-info {
  color: #666;
}

[data-theme="light"] .participant-info-rank {
  color: #b88a00;
}

[data-theme="light"] .participant-info-age {
  color: #888;
}

/* Doubles layout - two players side by side */
.participant-info-doubles {
  flex-wrap: wrap;
}

.participant-info-player {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.participant-info-doubles-sep {
  color: #6c757d;
  color: var(--text-muted, #6c757d);
  margin: 0 2px;
}

/* Compact doubles */
.participant-info-doubles.compact .participant-info-player {
  gap: 2px;
}

/* PasswordSecurityPage.css */
.security-page {
  background: var(--bg-primary);
  padding-bottom: 80px;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.security-back {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-back svg {
  width: 24px;
  height: 24px;
}

.security-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.security-content {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.security-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.security-card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.security-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.security-card-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.security-card-header p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

.security-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #22c55e;
  font-size: 14px;
}

.security-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.security-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #ef4444;
  font-size: 14px;
}

.security-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.security-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.security-input-group input {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.security-input-group input:focus {
  border-color: var(--accent-green);
}

.security-input-group input::placeholder {
  color: var(--text-quaternary);
}

.security-hint {
  font-size: 12px;
  color: var(--text-quaternary);
}

.security-submit {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 10px;
}

.security-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.security-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.security-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.security-info {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.security-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  margin: 0 0 12px;
}

.security-info ul {
  margin: 0;
  padding-left: 20px;
}

.security-info li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.security-info li:last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 480px) {
  .security-content {
    padding: 16px;
  }

  .security-card {
    padding: 20px;
  }

  .security-card-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

