/* ═══════════════════════════════════════════════════════════
   GANADORES — Premium Player Experience Layer
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  /* Deep luxury palette */
  --bg-primary: #080d14;
  --bg-secondary: #0c1420;
  --bg-tertiary: #162030;
  --bg-input: #0f1824;
  --border-color: #1e3048;

  /* Accents — gold + electric green */
  --accent-green: #00ff6a;
  --accent-green-hover: #00e05c;
  --accent-blue: #3b82f6;
  --accent-gold: #f5c842;
  --accent-gold-dim: #c9a227;
  --accent-orange: #ff8c42;
  --accent-purple: #a855f7;

  --text-primary: #f0f4ff;
  --text-secondary: #8b9cb8;
  --text-muted: #4a5a72;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --glow-green: 0 0 24px rgba(0, 255, 106, 0.35);
  --glow-gold: 0 0 20px rgba(245, 200, 66, 0.3);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.35);

  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

/* ── Animated ambient background ── */
.app-layout {
  background: var(--bg-primary);
  position: relative;
}

.app-layout::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0, 255, 106, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(168, 85, 247, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  animation: ambientShift 12s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}

.app-main-wrapper,
.app-sidebar,
.main-content {
  position: relative;
  z-index: 1;
}

/* ── Live wins ticker ── */
.g-win-ticker {
  display: flex;
  align-items: center;
  height: 32px;
  background: linear-gradient(90deg, #0a1520 0%, #0f1e2e 50%, #0a1520 100%);
  border-bottom: 1px solid rgba(0, 255, 106, 0.12);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
}

.g-win-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(0, 255, 106, 0.15), rgba(0, 255, 106, 0.05));
  border-right: 1px solid rgba(0, 255, 106, 0.2);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
  height: 100%;
  flex-shrink: 0;
}

.g-win-ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.g-win-ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.g-win-ticker-inner {
  display: flex;
  gap: 48px;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
  padding: 0 24px;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.g-win-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.g-win-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.g-win-item .amount {
  color: var(--accent-green);
  font-weight: 700;
}

.g-win-item .game {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ── Online counter in header ── */
.g-online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 255, 106, 0.08);
  border: 1px solid rgba(0, 255, 106, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.g-online-badge .count {
  color: var(--accent-green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ── Header ── */
.header {
  background: rgba(12, 20, 32, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  height: 64px !important;
}

.logo {
  font-family: 'Dancing Script', cursive !important;
  font-size: 34px !important;
  background: linear-gradient(135deg, #fff 30%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 255, 106, 0.3));
}

.search-input-wrapper {
  background: rgba(22, 32, 48, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  height: 42px !important;
  transition: all 0.25s ease !important;
}

.search-input-wrapper:focus-within {
  border-color: rgba(0, 255, 106, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(0, 255, 106, 0.1) !important;
  background: rgba(22, 32, 48, 1) !important;
}

/* ── Auth buttons ── */
.btn-login {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.btn-login:hover {
  color: var(--accent-green) !important;
}

.btn-register {
  background: linear-gradient(135deg, #00ff6a 0%, #00c853 100%) !important;
  color: #0a0e14 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(0, 255, 106, 0.35) !important;
  border: none !important;
  transition: all 0.25s ease !important;
  animation: ctaPulse 3s ease-in-out infinite;
}

.btn-register:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0, 255, 106, 0.5) !important;
  filter: brightness(1.08) !important;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 255, 106, 0.35); }
  50%       { box-shadow: 0 4px 24px rgba(0, 255, 106, 0.55); }
}

/* ── Sidebar ── */
.app-sidebar {
  background: rgba(10, 16, 26, 0.95) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px);
}

.nav-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
}

.nav-item {
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent-green);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(0, 255, 106, 0.08) !important;
  color: var(--accent-green) !important;
}

.nav-item.active::before {
  height: 60%;
  box-shadow: var(--glow-green);
}

.nav-item.active {
  font-weight: 700 !important;
}

/* Menús sin emojis — aspecto profesional */
.nav-item .nav-icon {
  display: none !important;
}

.nav-item {
  padding-left: 14px !important;
  gap: 0 !important;
}

.app-sidebar .nav-item span:last-child,
.app-sidebar a.nav-item {
  letter-spacing: 0.01em;
}

/* ── Hero section ── */
.home-page-hero {
  background:
    linear-gradient(135deg, rgba(0, 255, 106, 0.08) 0%, transparent 40%),
    linear-gradient(225deg, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0c1828 0%, var(--bg-primary) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 72px 40px !important;
  min-height: 320px;
}

.home-page-hero::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { opacity: 0.6; transform: translateY(-50%) scale(1); }
  100% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.hero-badge {
  background: rgba(0, 255, 106, 0.1) !important;
  border: 1px solid rgba(0, 255, 106, 0.3) !important;
  color: var(--accent-green) !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.hero-content h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

.hero-content h1 .brand-script,
.hero-content .brand-highlight {
  font-family: 'Dancing Script', cursive !important;
  background: linear-gradient(135deg, var(--accent-green) 0%, #7fffba 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 255, 106, 0.4));
}

.hero-content p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--text-secondary) !important;
  max-width: 520px;
}

.hero-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  border-radius: 14px !important;
  padding: 16px 36px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.hero-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%   { transform: translateX(-100%); }
  40%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.55) !important;
}

/* ── Trust strip ── */
.g-trust-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.g-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.g-trust-item .icon {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-green);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 106, 0.12);
  border-radius: 50%;
}

.g-trust-item strong {
  color: var(--text-primary);
}

/* ── Section headers ── */
.section-header h2 {
  font-family: 'Dancing Script', cursive !important;
  font-size: 28px !important;
  background: linear-gradient(135deg, var(--accent-green), #7fffba);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-section {
  padding: 40px 32px !important;
}

/* ── Game cards ── */
.stake-games-grid {
  gap: 20px !important;
}

.stake-card {
  border-radius: 14px !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.stake-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
}

.stake-card-image {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
}

.stake-card:hover .stake-card-image {
  border-color: rgba(0, 255, 106, 0.3) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 106, 0.1) !important;
}

.play-btn {
  background: linear-gradient(135deg, var(--accent-green), #00c853) !important;
  box-shadow: var(--glow-green) !important;
  width: 56px !important;
  height: 56px !important;
}

.game-name {
  font-weight: 700 !important;
  font-size: 15px !important;
}

.stake-card:hover .game-name {
  color: var(--accent-green) !important;
}

/* Brand overlay — replaces STAKE watermark on card art */
.stake-card-image::after {
  content: 'GANADORES EXCLUSIVOS';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 8px 10px;
  background: linear-gradient(transparent, rgba(8, 13, 20, 0.85));
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(0, 255, 106, 0.75);
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

/* Hot / Top / Live badges glow */
.stake-card-image [class*="badge"],
.stake-card-image [class*="tag"],
.stake-card-image [class*="hot"],
.stake-card-image [class*="top"],
.stake-card-image [class*="live"] {
  border-radius: 6px !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Player count pill on cards */
.stake-card-image [class*="count"],
.stake-card-image [class*="stat"] {
  background: rgba(8, 13, 20, 0.75) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 106, 0.2) !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  color: var(--accent-green) !important;
}

/* ── Bonus promo bar ── */
.g-bonus-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  background: linear-gradient(90deg, #0a1520, #0f2040, #0a1520);
  border-top: 1px solid rgba(245, 200, 66, 0.3);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  animation: bonusSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.g-bonus-bar.hidden {
  transform: translateY(100%);
}

@keyframes bonusSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.g-bonus-bar-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.g-bonus-bar-text em {
  font-style: normal;
  color: var(--accent-gold);
  font-weight: 800;
}

.g-bonus-bar-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-gold), #e6a817);
  color: #0a0e14;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.g-bonus-bar-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-gold);
}

.g-bonus-bar-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  transition: color 0.2s;
}

.g-bonus-bar-close:hover {
  color: var(--text-primary);
}

/* ── Game pages ── */
.crash-game,
.mines-sidebar,
.sidebar {
  background: var(--bg-secondary) !important;
}

.bet-mode-tab {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.bet-mode-tab.active,
.bet-mode-tab[data-active="true"] {
  background: rgba(0, 255, 106, 0.12) !important;
  color: var(--accent-green) !important;
}

/* Bet buttons across games */
button[class*="bet"],
.btn-bet-mines,
.wallet-deposit-btn {
  background: linear-gradient(135deg, var(--accent-green), #00c853) !important;
  color: #0a0e14 !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0, 255, 106, 0.3) !important;
  transition: all 0.2s ease !important;
}

button[class*="bet"]:hover,
.btn-bet-mines:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(0, 255, 106, 0.45) !important;
}

/* ── Wallet ── */
.wallet-balance-display {
  background: rgba(22, 32, 48, 0.9) !important;
  border-color: rgba(0, 255, 106, 0.2) !important;
  border-radius: 10px 0 0 10px !important;
}

.wallet-balance-amount {
  color: var(--accent-green) !important;
  font-weight: 800 !important;
}

/* ── Ant Design overrides ── */
.ant-btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #00c853) !important;
  border-color: transparent !important;
  color: #0a0e14 !important;
  font-weight: 700 !important;
}

.ant-switch-checked {
  background: var(--accent-green) !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 106, 0.3);
}

/* ── Footer buttons in sidebar ── */
.footer-btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.footer-btn:last-child {
  background: linear-gradient(135deg, var(--accent-green), #00c853) !important;
  color: #0a0e14 !important;
}

/* ── Promo card on home ── */
.g-promo-card {
  margin: 0 32px 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.g-promo-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.g-promo-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.g-promo-card-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-gold), #e6a817);
  color: #0a0e14;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--glow-gold);
}

.g-promo-card-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ── Crash / game multiplier glow ── */
.crash-game h1,
[class*="multiplier"] h1,
.multiplier-display {
  text-shadow: 0 0 30px rgba(0, 255, 106, 0.4) !important;
}

.hot-bet-banner,
.hot-bet-row,
.hot-streak-banner {
  background: linear-gradient(90deg, rgba(245, 200, 66, 0.12), transparent) !important;
  border-color: rgba(245, 200, 66, 0.2) !important;
}

/* ── Sports section polish ── */
.sports-betslip-fab-count {
  background: var(--accent-green) !important;
  color: #0a0e14 !important;
  font-weight: 800 !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .g-online-badge { display: none; }
  .g-trust-strip { gap: 12px; }
  .g-trust-item { font-size: 12px; }
  .home-page-hero { padding: 48px 20px !important; }
  .g-promo-card { margin: 0 16px 24px; padding: 20px; }
  .g-bonus-bar { flex-wrap: wrap; padding: 10px 16px; }
}
