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

/* Password Protection Overlay */
.password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.password-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 400px;
  width: 90%;
}

.password-container h1 {
  color: #C27C0E;
  margin-bottom: 10px;
  font-size: 2em;
}

.password-container p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-size: 1.1em;
}

.password-container input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.password-container input:focus {
  outline: none;
  border-color: #C27C0E;
  background: rgba(255, 255, 255, 0.15);
}

.password-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.password-container button {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #C27C0E 0%, #E89C3F 100%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(194, 124, 14, 0.4);
}

.password-error {
  color: #FF4444;
  margin-top: 10px;
  font-size: 14px;
}

.logout-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a0f00 0%, #2a1500 50%, #1f1300 100%);
  color: #ffffff;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/levels-bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 40%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}



header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;

}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #aaa;
  font-size: 1.1em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid  rgba(64, 48, 0, 0.8);

  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

/* Overall Performance card - Distinct Orange/Gold gradient */
.stat-card:first-child {
  background: linear-gradient(135deg, rgba(51, 25, 0, 0.8) 0%, rgba(102, 51, 0, 0.6) 50%, rgba(153, 76, 0, 0.8) 100%);
  border: 1px solid rgba(153, 76, 0, 0.8);
}

.stat-card:first-child:hover {
  background: linear-gradient(135deg, rgba(51, 25, 0, 0.9) 0%, rgba(102, 51, 0, 0.7) 50%, rgba(153, 76, 0, 0.9) 100%);
  border-color: rgba(255, 140, 0, 0.8);
}



/* VANDY - Silver/Gray theme (matches chart-gen.js) */
.stat-card[data-vip="924119558619553822"] {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.6) 50%, rgba(64, 64, 64, 0.8) 100%);
   border: 1px solid rgba(64, 64, 64, 0.8);
}

.stat-card[data-vip="924119558619553822"]:hover {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.7) 50%, rgba(64, 64, 64, 0.9) 100%);
  border-color: rgba(169, 169, 169, 0.7);
}

/* COACH - Bronze/Gold theme (matches chart-gen.js) */
.stat-card[data-vip="921433464652308501"] {
  background: linear-gradient(135deg, rgba(26, 17, 0, 0.8) 0%, rgba(45, 31, 0, 0.6) 50%, rgba(64, 48, 0, 0.8) 100%);
   border: 1px solid  rgba(64, 48, 0, 0.8);
}

.stat-card[data-vip="921433464652308501"]:hover {
  background: linear-gradient(135deg, rgba(26, 17, 0, 0.9) 0%, rgba(45, 31, 0, 0.7) 50%, rgba(64, 48, 0, 0.9) 100%);
  border-color: rgba(160, 116, 36, 0.7);
}

/* PREZ - Navy/Silver theme (matches chart-gen.js) */
.stat-card[data-vip="740682102634184755"] {
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.8) 0%, rgba(18, 26, 43, 0.6) 50%, rgba(28, 42, 58, 0.8) 100%);
   border: 1px solid rgba(28, 42, 58, 0.8);
}

.stat-card[data-vip="740682102634184755"]:hover {
  background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(18, 26, 43, 0.7) 50%, rgba(28, 42, 58, 0.9) 100%);
  border-color: rgba(176, 184, 192, 0.7);
}

/* FIVE GUYS - Gray theme (matches chart-gen.js) */
.stat-card[data-vip="934176829646995627"] {
  background: linear-gradient(135deg, rgba(64, 64, 64, 0.8) 0%, rgba(45, 45, 45, 0.6) 50%, rgba(26, 26, 26, 0.8) 100%);
   border: 1px solid  rgba(26, 26, 26, 0.8)
}

.stat-card[data-vip="934176829646995627"]:hover {
  background: linear-gradient(135deg, rgba(64, 64, 64, 0.9) 0%, rgba(45, 45, 45, 0.7) 50%, rgba(26, 26, 26, 0.9) 100%);
  border-color: rgba(211, 211, 211, 0.7);
}

/* SOLE - Blue/Orange theme (matches chart-gen.js) */
.stat-card[data-vip="531603071336448009"] {
  background: linear-gradient(135deg, rgba(11, 30, 58, 0.8) 0%, rgba(18, 60, 107, 0.6) 50%, rgba(26, 90, 160, 0.8) 100%);
  border: 1px solid rgba(26, 90, 160, 0.8);
}

.stat-card[data-vip="531603071336448009"]:hover {
  background: linear-gradient(135deg, rgba(11, 30, 58, 0.9) 0%, rgba(18, 60, 107, 0.7) 50%, rgba(26, 90, 160, 0.9) 100%);
  border-color: rgba(255, 106, 0, 0.7);
}

.vip-logo {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(194, 124, 14, 0.4),
  0 2px 10px rgba(194, 124, 14, 0.3),
  0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* VANDY - Silver/Gray shadow */
.stat-card[data-vip="924119558619553822"] .vip-logo {
  box-shadow: 0 2px 20px rgba(169, 169, 169, 0.5),
  0 2px 10px rgba(169, 169, 169, 0.4),
  0 0 0 2px rgba(169, 169, 169, 0.2);
}

/* COACH - Bronze/Gold shadow */
.stat-card[data-vip="921433464652308501"] .vip-logo {
  box-shadow: 0 2px 20px rgba(160, 116, 36, 0.5),
  0 2px 10px rgba(160, 116, 36, 0.4),
  0 0 0 2px rgba(160, 116, 36, 0.2);
}

/* PREZ - Navy/Silver shadow */
.stat-card[data-vip="740682102634184755"] .vip-logo {
  box-shadow: 0 2px 20px rgba(176, 184, 192, 0.5),
  0 2px 10px rgba(176, 184, 192, 0.4),
  0 0 0 2px rgba(176, 184, 192, 0.2);
}

/* FIVE GUYS - White/Gray shadow */
.stat-card[data-vip="934176829646995627"] .vip-logo {
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.4),
  0 2px 10px rgba(211, 211, 211, 0.3),
  0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* SOLE - Blue/Orange shadow */
.stat-card[data-vip="531603071336448009"] .vip-logo {
  box-shadow: 0 2px 20px rgba(255, 106, 0, 0.5),
  0 2px 10px rgba(255, 106, 0, 0.4),
  0 0 0 2px rgba(255, 106, 0, 0.2);
}

.vip-logos-combined {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.vip-logo-small {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(194, 124, 14, 0.25),
  0 1px 4px rgba(194, 124, 14, 0.2),
  0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 134, 11, 0.6);
}

.stat-card h3 {
  color: #B8860B;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-value.positive {
  color: #4CAF50;
}

.stat-value.negative {
  color: #FF4444;
}

.stat-label {
  color: #888;
  font-size: 0.9em;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
  border-bottom: none;
}

canvas {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.recent-bets {
  margin-top: 40px;
}

.recent-bets h2 {
  color: #white;
  margin-bottom: 20px;
}

.filter-container {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-container label {
  color: #B8860B;
  font-weight: 600;
}

.filter-container select {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  min-width: 200px;
}

.filter-container select:hover {
  background: rgba(255, 255, 255, 0.15);
}

.filter-container select:focus {
  outline: none;
  border-color: #B8860B;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(184, 134, 11, 0.2);
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #B8860B;
  white-space: nowrap;
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.loading {
  text-align: center;
  padding: 40px;
  color: #888;
}

.result-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
}

.result-win {
  background: #4CAF50;
  color: white;
}

.result-loss {
  background: #FF4444;
  color: white;
}

.result-pending {
  background: #FFD700;
  color: #333;
}

.sport-stats {
  margin-top: 40px;
}

.sport-stats h2 {
  margin-bottom: 15px;
}

.sport-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}


.result-bonus {
  background: #FFA500;
  color: white;
}

.result-no-sweat {
  background: #FF6B35;
  color: white;
}

/* Mobile card view for bets */
@media (max-width: 640px) {
  /* Hide table on very small screens, use card layout instead */
  table thead {
    display: none;
  }

  table, tbody {
    display: block;
  }

  tr {
    display: block;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  tr:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #B8860B;
    margin-right: 10px;
    min-width: 80px;
  }

  .result-badge {
    margin-left: auto;
  }
}


.sport-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.sport-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sport-name {
  font-size: 14px;
  font-weight: bold;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sport-value {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.sport-value.positive {
  color: #4CAF50;
}

.sport-value.negative {
  color: #FF4444;
}

.sport-label {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.sport-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.sport-row span:first-child {
  color: #888;
}

.sport-row span:last-child {
  font-weight: 600;
  color: #ffffff;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8em;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-container label {
    margin: 0 !important;
  }

  .filter-container select,
  .filter-container input {
    min-width: 100%;
    width: 100%;
  }

  .filter-container > div {
    width: 100%;
  }

  /* Make table scrollable horizontally */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Improve table readability on mobile */
  table {
    font-size: 0.75em;
    min-width: 100%;
    display: block;
  }

  thead, tbody, tr {
    display: block;
  }

  thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  th {
    padding: 10px 6px;
    white-space: nowrap;
  }

  td {
    padding: 10px 6px;
    white-space: nowrap;
  }

  /* Reduce VIP logo sizes on mobile */
  .vip-logo {
    width: 60px;
    height: 60px;
    top: 10px;
    right: 10px;
  }

  .vip-logo-small {
    width: 35px;
    height: 35px;
  }

  /* Better spacing for stat cards */
  .stat-card {
    padding: 20px 15px;
  }

  .stat-card h3 {
    font-size: 0.85em;
  }

  .stat-value {
    font-size: 1.6em;
  }

  /* Sport stats grid adjustment */
  .sport-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .sport-card {
    padding: 12px;
  }

  .sport-value {
    font-size: 20px;
  }

  /* Header adjustments */
  header {
    padding: 15px;
    margin-bottom: 20px;
  }

  .subtitle {
    font-size: 0.95em;
  }

  /* Recent bets section */
  .recent-bets h2 {
    font-size: 1.3em;
  }

  /* Better button layout on mobile */
  .filter-container button {
    width: 100%;
    padding: 10px 16px;
  }
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-wrap: wrap;
}

.pagination-controls button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background: #C27C0E;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.pagination-controls button:hover:not(:disabled) {
  background: #D4900F;
}

.pagination-controls button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.pagination-controls select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-left: auto;
}


/* VANDY - Silver/Gray text theme */
.stat-card[data-vip="924119558619553822"] h3 {
  color: #D0D8E0;
  text-shadow: 0 0 10px rgba(176, 184, 192, 0.5);
}

.stat-card[data-vip="924119558619553822"] .stat-label {
  color: #A9A9A9;
}

.stat-card[data-vip="924119558619553822"] .stat-row {
  border-bottom-color: rgba(169, 169, 169, 0.2);
}

/* COACH - Bronze/Gold text theme */
.stat-card[data-vip="921433464652308501"] h3 {
   color: #D0D8E0;
  text-shadow: 0 0 10px rgba(176, 184, 192, 0.5);
}

.stat-card[data-vip="921433464652308501"] .stat-label {
   color: #A9A9A9;
}

.stat-card[data-vip="921433464652308501"] .stat-row {
  border-bottom-color: rgba(160, 116, 36, 0.2);
}

/* PREZ - Navy/Silver text theme */
.stat-card[data-vip="740682102634184755"] h3 {
   color: #D0D8E0;
  text-shadow: 0 0 10px rgba(176, 184, 192, 0.5);
}

.stat-card[data-vip="740682102634184755"] .stat-label {
  color: #A9A9A9;
}

.stat-card[data-vip="740682102634184755"] .stat-row {
  border-bottom-color: rgba(176, 184, 192, 0.2);
}

/* FIVE GUYS - White/Gray text theme */
.stat-card[data-vip="934176829646995627"] h3 {
  color: #D0D8E0;
  text-shadow: 0 0 10px rgba(176, 184, 192, 0.5);
}

.stat-card[data-vip="934176829646995627"] .stat-label {
   color: #A9A9A9;
}

.stat-card[data-vip="934176829646995627"] .stat-row {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* SOLE - Blue/Orange text theme */
.stat-card[data-vip="531603071336448009"] h3 {
   color: #D0D8E0;
  text-shadow: 0 0 10px rgba(176, 184, 192, 0.5);
}

.stat-card[data-vip="531603071336448009"] .stat-label {
   color: #A9A9A9;
}

.stat-card[data-vip="531603071336448009"] .stat-row {
  border-bottom-color: rgba(255, 106, 0, 0.2);
}

/* Overall Performance - Gold/Orange text theme */
.stat-card:first-child h3 {
   color: #D0D8E0;
  text-shadow: 0 0 10px rgba(176, 184, 192, 0.5);
}

.stat-card:first-child .stat-label {
   color: #A9A9A9;
}

.stat-card:first-child .stat-row {
  border-bottom-color: rgba(232, 156, 63, 0.2);
}