:root {
  --bg-dark: #0a0a0a;
  --surface: #1a1a1a;
  --surface-light: #2a2a2a;
  --accent: #ffffff;           /* pure white */
  --accent-gray: #e0e0e0;      /* light gray for subtle accents */
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 20px 40px -10px rgba(255, 255, 255, 0.1);
}

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

body {
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
}

.app {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* Glassmorphism base */
.glass {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* Header */
.header {
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  padding: 0.8rem 1.5rem;
  box-shadow: var(--shadow);
}

.logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.search-wrapper {
  flex: 1;
  max-width: 400px;
}

#gameSearch {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent);
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: 0.2s;
}

#gameSearch:focus {
  border-color: var(--accent-gray);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Phone number */
.phone-wrapper {
  text-align: center;
  margin: 30px 0 20px;
}

.big-phone {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transition: opacity 0.2s;
}

.big-phone:hover {
  opacity: 0.8;
}

.contact-owner {
  display: block;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 5px;
  animation: gentlePulse 2s infinite ease-in-out;
}

@keyframes gentlePulse {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* Facebook section */
.facebook-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.facebook-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  padding: 10px 30px;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  justify-content: center;
}

.fb-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fb-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-gray));
  color: black;
  padding: 10px 24px;
  border-radius: 60px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: softPulse 2s infinite ease-in-out;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.2);
}

.fb-chat-link i {
  font-size: 1.2rem;
}

.fb-chat-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  animation: none;
}

@keyframes softPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Cashout rule image */
.cashout-rule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.cashout-rule-img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Stats section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.9;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main content layout */
.main-content {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.games-section {
  flex: 3;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.game-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.game-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.game-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s;
  margin-bottom: 0.8rem;
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

.game-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.5rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: black;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: 2;
}

/* Winners sidebar */
.winners-sidebar {
  flex: 1;
  background: var(--surface);
  border-radius: 24px;
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}

.winners-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255,255,255,0.05);
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.05);
  animation: fadeIn 0.3s;
}

.winner-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, var(--accent), var(--accent-gray));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: black;
  font-size: 1.2rem;
}

.winner-details {
  flex: 1;
}

.winner-name {
  font-weight: 700;
  color: var(--accent);
}

.winner-game {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.winner-amount {
  font-weight: 700;
  color: var(--accent);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* No results */
.no-results {
  display: none;
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 3rem 0;
  padding: 2rem;
  background: var(--surface);
  border-radius: 60px;
  border: 2px dashed var(--accent);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  transition: 0.2s;
  color: var(--accent);
  font-size: 1.5rem;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--accent-gray);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  color: var(--accent-gray);
}

.counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.counter-link {
  color: var(--accent);
  text-decoration: none;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border-left: 6px solid var(--accent);
  border-radius: 60px;
  padding: 0.8rem 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(100%);
  animation: slideIn 0.3s forwards, fadeOut 0.3s 4.7s forwards;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.toast-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.toast-message {
  font-weight: 500;
}

.toast strong {
  color: var(--accent);
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-content {
    flex-direction: column;
  }
  .winners-sidebar {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .app {
    padding: 1rem;
  }
  .header-content {
    flex-direction: column;
  }
  .big-phone {
    font-size: 2.2rem;
  }
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .game-image {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
  .big-phone {
    font-size: 1.8rem;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-image {
    width: 90px;
    height: 90px;
  }
  .facebook-item {
    flex-direction: column;
    gap: 10px;
  }
}