/* Estilos para o Lobby/Dashboard estilo POPBRA */
.lobby-container {
  padding-bottom: 75px; /* Espaço para o Bottom Nav */
}

/* User Profile Header Brief */
.lobby-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.lobby-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobby-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.lobby-user-details {
  display: flex;
  flex-direction: column;
}

.lobby-user-details strong {
  font-size: 14px;
  color: var(--text);
}

.lobby-user-details span {
  font-size: 11px;
  color: var(--muted);
}

.lobby-wallet-info {
  text-align: right;
}

.lobby-wallet-info span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.lobby-wallet-info strong {
  font-size: 16px;
  color: #1abd6a;
}

/* Promo Banner Slider Simulation */
.promo-slider {
  position: relative;
  background: linear-gradient(135deg, #b30c1d 0%, #d81b2f 100%);
  border-radius: 16px;
  min-height: 150px;
  padding: 20px;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-slider::after {
  content: "🐯🤖";
  position: absolute;
  right: 15px;
  bottom: 10px;
  font-size: 80px;
  opacity: 0.85;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.promo-slider.custom-banner-loaded::after {
  display: none !important;
}

.promo-tag {
  background: #ffc107;
  color: #111;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  width: fit-content;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.promo-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px 0;
  line-height: 1.1;
  max-width: 65%;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.promo-subtitle {
  font-size: 12px;
  margin: 0;
  max-width: 65%;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.category-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 193, 7, 0.18), #ffffff 70%);
  border: 1px solid var(--line);
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.category-item:hover .category-icon-wrapper {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.35);
}

.category-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.category-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

/* WinGo Slots Promo Card */
.slots-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 22px 16px 18px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(184, 92, 246, 0.35), transparent 60%),
    linear-gradient(135deg, #2a1a4d 0%, #150c2e 100%);
  border: 1px solid rgba(255, 193, 7, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(184, 92, 246, 0.15) inset;
}

.slots-promo-crown {
  font-size: 26px;
  filter: drop-shadow(0 2px 6px rgba(255, 193, 7, 0.5));
  margin-bottom: 2px;
}

.slots-promo-body strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 12px rgba(184, 92, 246, 0.6);
}

.slots-promo-body strong span {
  background: linear-gradient(135deg, #ffe27a, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slots-promo-tagline {
  display: block;
  font-size: 12px;
  color: #d9c9ff;
  margin-top: 2px;
}

.slots-promo-cta {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1f1430;
  background: linear-gradient(135deg, #ffe27a, #ffc107);
  padding: 7px 16px;
  border-radius: 20px;
}

.slots-promo-orb {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  opacity: 0.55;
  animation: slotsPromoFloat 4s ease-in-out infinite;
}

.slots-promo-orb-1 { top: 12px; left: 14px; background: radial-gradient(circle at 30% 30%, #b85cf6, #6a2fb0); animation-delay: 0s; }
.slots-promo-orb-2 { bottom: 16px; left: 30px; background: radial-gradient(circle at 30% 30%, #18b95f, #0d6b37); animation-delay: 1.3s; }
.slots-promo-orb-3 { top: 18px; right: 18px; background: radial-gradient(circle at 30% 30%, #ffc107, #b8860b); animation-delay: 2.1s; }

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

/* Providers Grid */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px 0;
  padding: 0 4px;
}

.section-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.providers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 4px;
}

.provider-card {
  background: linear-gradient(135deg, #1c2738 0%, #0d121c 100%);
  border-radius: 12px;
  height: 100px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s, border-color 0.2s;
}

.provider-card:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

.provider-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  z-index: 1;
}

.provider-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-logo-text {
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  background: linear-gradient(185deg, #fff 40%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.provider-game-count {
  font-size: 9px;
  color: #ffc107;
  font-weight: 700;
  position: relative;
  z-index: 2;
  margin-top: 2px;
}

/* Specific cards styling for premium provider feeling */
.provider-card.wingo-featured {
  background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
  border: 1.5px solid #ffd700;
}

.provider-card.wingo-featured::before {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 80%);
}

.provider-card.wingo-featured .provider-logo-text {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 18px;
}

.provider-card.wingo-featured .provider-game-count {
  color: #fff;
  font-weight: 800;
}

/* WinGo Period Cards */
.wingo-periods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 6px;
}

.wingo-period-card {
  position: relative;
  display: block;
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease;
}

.wingo-period-card:active {
  transform: scale(0.98);
}

.wingo-period-30sec { background: linear-gradient(135deg, #5aa9ff 0%, #2f5fd6 100%); }
.wingo-period-1min  { background: linear-gradient(135deg, #37c9e6 0%, #2178c9 100%); }
.wingo-period-3min  { background: linear-gradient(135deg, #7d6bf0 0%, #4a2fb8 100%); }
.wingo-period-5min  { background: linear-gradient(135deg, #b463f0 0%, #7a2fd6 100%); }

.wingo-period-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.wingo-period-body strong {
  font-size: 17px;
  font-weight: 800;
}

.wingo-period-body span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.wingo-period-winner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  position: relative;
  z-index: 1;
  min-height: 30px;
}

.wingo-period-winner .wp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.wingo-period-winner .wp-name {
  font-weight: 700;
  color: #fff;
}

.wingo-period-winner .wp-prize {
  margin-left: auto;
  font-weight: 800;
  color: #ffe27a;
  white-space: nowrap;
}

/* Toast Message Style */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  width: max-content;
  max-width: 90%;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Brazil Flag Card Background */
.brazil-flag-bg {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
  width: 100px;
  height: 70px;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.3);
}

/* Live Wins Ticker Section */
.live-wins-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.live-wins-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.live-wins-title span {
  font-size: 10px;
  background: #f6ffed;
  color: #52c41a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid #b7eb8f;
}

.live-wins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 156px;
  max-height: 156px;
  overflow: hidden;
  position: relative;
}

.live-win-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(36, 26, 61, 0.04);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.live-win-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}

.live-win-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.live-win-info strong {
  color: var(--text);
  font-weight: 700;
}

.live-win-info span {
  color: var(--muted);
}

.live-win-amount {
  font-size: 13px;
  font-weight: 800;
  color: #1abd6a;
}
