:root {
  --bg-dark: #0d071a;
  --surface: #1a1035;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff44e6;
  --neon-purple: #9d4edd;
  --text: #ffffff;
  --text-muted: #b8b0d0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
}

* {
  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(157, 78, 221, 0.1) 0%, transparent 30%),
                    radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.1) 0%, transparent 30%);
}

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.gradient {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

#gameSearch:focus {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 15px var(--neon-magenta);
}

.user-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-outline:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-primary {
  background: linear-gradient(145deg, var(--neon-cyan), var(--neon-purple));
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 25px var(--neon-cyan);
}

/* Stats Rings */
.stats-rings {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.ring {
  position: relative;
  width: 120px;
  height: 120px;
  text-align: center;
}

.ring-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: calc(251.2 * 0.22);
  filter: drop-shadow(0 0 8px var(--neon-cyan));
  transition: stroke-dashoffset 0.5s;
}

.ring-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.ring-label {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Featured Orb */
.featured-orb {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.orb-large {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface), var(--bg-dark));
  border: 4px solid var(--neon-cyan);
  box-shadow: 0 0 50px var(--neon-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.orb-large img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px white);
  margin-bottom: 1rem;
}

.orb-content {
  text-align: center;
}

.orb-title {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: white;
}

.orb-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.orb-large .btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
}

/* Horizontal Winners Feed */
.winners-feed-horizontal {
  margin-bottom: 3rem;
  overflow: hidden;
}

.feed-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  text-align: center;
}

.feed-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--surface);
}

.feed-scroll::-webkit-scrollbar {
  height: 6px;
}

.feed-scroll::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 10px;
}

.winner-orb {
  flex: 0 0 auto;
  width: 70px;
  text-align: center;
  animation: fadeIn 0.3s;
}

.winner-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--neon-cyan), var(--neon-magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin: 0 auto 0.3rem;
  border: 3px solid white;
  box-shadow: 0 0 15px currentColor;
}

.winner-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-amount {
  font-size: 0.6rem;
  color: var(--neon-magenta);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Game Grid - Circular Tiles */
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  color: var(--neon-cyan);
  margin-bottom: 2rem;
  text-shadow: 0 0 10px var(--neon-cyan);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2rem;
  list-style: none;
  justify-items: center;
}

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

.game-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface), #231a42);
  border: 4px solid var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-orb:hover {
  transform: scale(1.1);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 30px var(--neon-magenta);
}

.orb-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  position: relative;
}

.orb-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px black);
  transition: transform 0.3s;
  margin-bottom: 0.3rem;
}

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

.orb-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.4rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.orb-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--neon-magenta);
  color: white;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  border: 2px solid white;
  box-shadow: 0 0 10px currentColor;
  z-index: 2;
}

.game-orb.new .orb-badge {
  background: var(--neon-cyan);
  color: black;
}

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

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 240, 255, 0.3);
  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(--neon-cyan);
  transition: 0.2s;
}

.social-link:hover {
  border-color: var(--neon-magenta);
  transform: scale(1.15);
  box-shadow: 0 0 20px var(--neon-magenta);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

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

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

/* Toast Notifications (Orb style) */
.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: 3px solid var(--neon-cyan);
  border-radius: 60px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 0 30px var(--neon-cyan);
  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;
  backdrop-filter: blur(8px);
}

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 800;
}

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

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

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

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

/* Responsive (original) */
@media (max-width: 768px) {
  .app {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
  }

  .stats-rings {
    gap: 1.5rem;
  }

  .ring {
    width: 90px;
    height: 90px;
  }

  .ring-svg {
    width: 90px;
    height: 90px;
  }

  .orb-large {
    width: 220px;
    height: 220px;
  }

  .orb-large img {
    width: 80px;
    height: 80px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
  }

  .game-orb {
    width: 90px;
    height: 90px;
  }

  .orb-image {
    width: 50px;
    height: 50px;
  }

  .orb-name {
    font-size: 0.55rem;
  }
}

/* ===== NEW STYLES (phone, facebook, cashout) ===== */
.phone-wrapper {
  text-align: center;
  margin: 30px 0 20px;
}

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

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

.contact-owner {
  display: block;
  font-size: 1.2rem;
  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 {
  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: 12px 30px;
  border-radius: 60px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  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(--neon-cyan), var(--neon-purple));
  color: white;
  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(255,255,255,0.2);
}

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

.fb-chat-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--neon-magenta);
  animation: none;
}

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

/* ----- Cashout Rule Image Container ----- */
.cashout-rule {
  background: var(--surface);
  border-radius: 40px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cashout-rule-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit; /* matches container's border radius */
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .big-phone {
    font-size: 2.2rem;
  }
  .facebook-item {
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
  }
  .fb-chat-link {
    white-space: normal;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .big-phone {
    font-size: 1.8rem;
  }
}

/* Logo image styles */
.logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.logo-image {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* Make cashout rule container full width on mobile */
@media (max-width: 600px) {
  .cashout-rule {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .cashout-rule-img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* Mobile: 2 games per row with larger tiles */
@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-orb {
    width: 130px;
    height: 130px;
  }
  .orb-image {
    width: 80px;
    height: 80px;
  }
}
