::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}
html {
  scroll-behavior: smooth;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes pulse-slow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}
.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Menu deslizante */
.slide-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  max-width: calc(100vw - 24px);
  height: 100dvh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(34, 197, 94, 0.3);
  z-index: 1000;
  transition: left 0.3s ease-in-out;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slide-menu.open {
  left: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}


.menu-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.menu-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.menu-footer-version {
  display: block;
  text-align: center;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}


.menu-link {
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-link:hover,
.menu-link:focus-visible {
  background: rgba(55, 65, 81, 0.7);
  border-color: rgba(34, 197, 94, 0.28);
  transform: translateX(2px);
  outline: none;
}

.menu-link.menu-link-active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.menu-link.menu-link-active .w-10 {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* Menu hamburguer */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #22c55e;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Páginas internas */
.page {
  display: block;
  min-height: 100vh;
  padding-top: 80px;
  background: #030712;
}

.page.active { display: block; }

/* Webview responsiva */
.webview-container {
  width: 100%;
  max-width: 400px;
  height: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.webview-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Barra de pesquisa */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-input {
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: white;
  width: 100%;
  font-size: 1rem;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

/* Filtros de categoria */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(75, 85, 99, 0.5);
  color: #d1d5db;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn:hover {
  background: rgba(55, 65, 81, 0.7);
  border-color: #22c55e;
}

.category-btn.active {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
  font-weight: 600;
}

/* Card de notícias/parceiros */
.news-card, .partner-card {
  transition: all 0.3s ease;
}

.news-card.hidden, .partner-card.hidden {
  display: none;
}

/* Estilos para os novos cards de parceiros simplificados */
.partner-card .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Remove a seção de filtros de categoria da página de parceiros */
#parceiros .category-filter {
  display: none;
}

/* Top 3 Ganhadores - Quiz */
.quiz-winners {
  max-width: 600px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: #22c55e;
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.winner-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.winner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.winner-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.winner-prize {
  font-size: 0.85rem;
  opacity: 0.8;
}

.winner-btn {
  background: #22c55e;
  color: #020617;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

/* Estilos para a página de gaming */
#gaming .page {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0f0f 100%);
}

#gaming .border-red-500\/20 {
  border-color: rgba(239, 68, 68, 0.2);
}

#gaming .bg-red-500\/10 {
  background-color: rgba(239, 68, 68, 0.1);
}

/* Responsividade para cards de gaming */
@media (max-width: 640px) {
  #gaming .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Estilo para ocultar cards de ganhadores */
.winner-card-item.hidden {
  display: none;
}

/* ===== Hall dos Ganhadores (cards finos, iguais ao modelo do index) ===== */
.winner-card-item{ width:100%; max-width:400px; margin:0 auto; }

.winner-card-item{ --accent:#22c55e; --accentSoft:rgba(34,197,94,.20); --accentBorder:rgba(34,197,94,.30); --accentGlow:rgba(34,197,94,.15); }
.winner-card-item[data-category="quiz"]{ --accent:#22c55e; --accentSoft:rgba(34,197,94,.20); --accentBorder:rgba(34,197,94,.30); --accentGlow:rgba(34,197,94,.15); }
.winner-card-item[data-category="gaming"]{ --accent:#ef4444; --accentSoft:rgba(239,68,68,.20); --accentBorder:rgba(239,68,68,.30); --accentGlow:rgba(239,68,68,.15); }
.winner-card-item[data-category="instagram"]{ --accent:#ec4899; --accentSoft:rgba(236,72,153,.20); --accentBorder:rgba(236,72,153,.30); --accentGlow:rgba(236,72,153,.15); }

.winner-card-item .card-container{
  background: rgba(30,41,59,0.95);
  border: 1px solid var(--accentBorder);
  border-radius: 18px;
  padding: 14px 18px;
  height: 92px;
  display:flex;
  align-items:center;
  transition: all .25s ease;
}
.winner-card-item .card-container:hover{
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accentGlow);
}

.winner-card-item .flex{ display:flex; }

/* garante que a linha interna ocupe 100% do card (ancora preço/botão no canto direito) */
.winner-card-item .card-container > .flex{ width:100%; }
.winner-card-item .items-center{ align-items:center; }
.winner-card-item .gap-4{ gap:16px; }
.winner-card-item .relative{ position:relative; flex-shrink:0; }

.winner-card-item .avatar{
  width:48px;
  height:48px;
  border-radius: 12px;
  object-fit: cover;
  display:block;
}
.winner-card-item .avatar--placeholder{
  background: rgba(55,65,81,0.55);
  border: 1px solid rgba(148,163,184,0.20);
}

.winner-card-item .badge{
  position:absolute;
  bottom:-6px;
  right:-6px;
  width:22px;
  height:22px;
  background: var(--accent);
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 2px solid rgba(30,41,59,0.95);
}
.winner-card-item .badge i{ font-size: 11px; color: #ffffff; line-height: 1; }

.winner-card-item .content{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap: 12px;
}
.winner-card-item .info{ min-width:0; display:flex; flex-direction:column; gap:8px; flex: 1; }
.winner-card-item .right{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; margin-left: auto; }
.winner-card-item .username{
  font-size: 14px;
  font-weight: 800;
  color:#ffffff;
  line-height:1.1;
}
.winner-card-item .price{
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.winner-card-item .tags{ display:flex; align-items:center; gap:8px; }
.winner-card-item .category{
  background: var(--accentSoft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.winner-card-item .date{ color:#94a3b8; font-size: 11px; font-weight: 600; }

.winner-card-item .ver-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background: var(--accent);
  color:#0b1220;
  border:none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  text-decoration:none;
  cursor:pointer;
  transition: all .2s ease;
  flex-shrink:0;
}
.winner-card-item .ver-btn:hover{ filter: brightness(1.06); transform: scale(1.04); }
.winner-card-item .ver-btn i{ font-size: 12px; }

@media (max-width: 420px){
  .winner-card-item{ max-width: 100%; }
  .winner-card-item .card-container{ height: 90px; padding: 12px 14px; }
}

/* Estilo para cards de ganhadores */
#ganhadores .category-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(75, 85, 99, 0.5);
  color: #d1d5db;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

#ganhadores .category-btn:hover {
  background: rgba(55, 65, 81, 0.7);
  border-color: #a855f7;
}

#ganhadores .category-btn.active {
  background: #a855f7;
  border-color: #a855f7;
  color: white;
  font-weight: 600;
}

/* Forçar título das novidades em branco (apenas o título) */
.news-card h3,
.news-title {
  color: #ffffff !important;
}


/* Shimmer loading */
@keyframes shimmer-move {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(160%); }
}
.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(55, 65, 81, 0.35);
}
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  animation: shimmer-move 1.15s ease-in-out infinite;
}

/* ===== SHIMMER ===== */
@keyframes ottShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ott-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.ott-shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.00)
  );
  animation: ottShimmer 1.2s infinite;
}

.ott-shimmer-line {
  height: 14px;
  border-radius: 999px;
}

.ott-shimmer-title {
  height: 28px;
  border-radius: 14px;
}

.ott-shimmer-img {
  height: 220px;
  border-radius: 20px;
}

@media (min-width: 768px) {
  .ott-shimmer-img { height: 320px; }
  .ott-shimmer-title { height: 34px; }
}
