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

body {
  font-family: 'Nunito', sans-serif;
  background: #fffdf4;
  color: #2d2d2d;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}

/* ── DARK MODE ── */
body.dark {
  background: #111318;
  color: #e8e8e8;
}

body.dark header {
  background: #1a1d24;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

body.dark nav a {
  color: #e8e8e8;
}

body.dark nav a.active {
  background: #ffcb05;
  color: #1a1d24;
}

body.dark nav a:hover {
  background: rgba(255,255,255,0.08);
}

body.dark .logo {
  color: #e8e8e8;
}

body.dark .card {
  background: #1e2130;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.dark .card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

body.dark .card-nome {
  color: #f0f0f0;
}

body.dark .card-tipo {
  color: #aaa;
}

body.dark .card-preco {
  color: #ffcb05;
}

body.dark .card-img-placeholder {
  background: linear-gradient(135deg, #252836, #1a1d24);
}

body.dark .filtros-inner {
  background: transparent;
}

/* ── BADGES ── */
.badge-ultimo, .badge-novidade {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
  animation: pulse 1.5s infinite;
}

.badge-ultimo {
  background: #e63946;
  box-shadow: 0 2px 8px rgba(230,57,70,0.4);
}

.badge-novidade {
  background: #2a9d8f;
  box-shadow: 0 2px 8px rgba(42,157,143,0.4);
  top: auto;
  bottom: 10px;
  left: 10px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.card {
  position: relative;
}

body.dark #filtro-tipo,
body.dark #filtro-select,
body.dark #filtro-ordem {
  background-color: #1e2130;
  border-color: #ffcb05;
  color: #f0f0f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffcb05' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

body.dark .netflix-titulo {
  color: #f0f0f0;
}

body.dark .sobre-card {
  background: #1e2130;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

body.dark .sobre-card h2 {
  color: #ffcb05;
}

body.dark .sobre-card p {
  color: #aaa;
}

body.dark footer {
  background: #0a0c10;
}

body.dark .empty-state {
  color: #666;
}

body.dark .btn-topo {
  background: #ffcb05;
  color: #111;
}

/* ── TOGGLE DARK MODE ── */
.dark-toggle {
  background: #0d1f3c;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.dark-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

body.dark .dark-toggle {
  background: #ffcb05;
}

/* ── HEADER ── */
header {
  background: #ffcb05;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #2d2d2d;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-img {
  height: 72px;
  width: 72px;
  object-fit: contain;
}

.logo span {
  display: none;
}

nav {
  display: flex;
  gap: 8px;
  flex: 1;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2d2d2d;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(0,0,0,0.08);
}

nav a.active {
  background: #2d2d2d;
  color: #ffcb05;
}

.wpp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 24px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.wpp-btn:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6e 40%, #ffcb05 100%);
  text-align: center;
  padding: 56px 24px 52px;
  position: relative;
  overflow: hidden;
}

.hero-silhuetas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sil {
  position: absolute;
  font-size: 120px;
  opacity: 0.07;
  filter: grayscale(1);
}

.sil-1 { top: -10px; left: 2%;  font-size: 160px; }
.sil-2 { top: 10px;  left: 18%; font-size: 100px; }
.sil-3 { bottom: -10px; right: 18%; font-size: 130px; }
.sil-4 { top: 5px;  right: 2%;  font-size: 110px; }
.sil-5 { bottom: 5px; left: 38%; font-size: 90px; }

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: #ffcb05;
  color: #0d1f3c;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 6px 28px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(255,203,5,0.4);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 3px 3px 0px #0d1f3c, -1px -1px 0px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  line-height: 1.7;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

/* ── FADE IN ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeInUp 0.35s ease both;
}

.netflix-row .card:nth-child(1)  { animation-delay: 0.04s; }
.netflix-row .card:nth-child(2)  { animation-delay: 0.08s; }
.netflix-row .card:nth-child(3)  { animation-delay: 0.12s; }
.netflix-row .card:nth-child(4)  { animation-delay: 0.16s; }
.netflix-row .card:nth-child(5)  { animation-delay: 0.20s; }
.netflix-row .card:nth-child(6)  { animation-delay: 0.24s; }

/* ── HERO SOBRE ── */
.hero-sobre {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6e 50%, #ffcb05 100%);
}

/* ── PÁGINA SOBRE ── */
.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.sobre-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.4s ease both;
}

.sobre-icon {
  font-size: 2.2rem;
}

.sobre-card h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0d1f3c;
}

.sobre-card p {
  font-size: 0.92rem;
  color: #555;
  font-weight: 600;
  line-height: 1.6;
}

.sobre-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  width: fit-content;
}

.sobre-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sobre-btn.wpp {
  background: #25d366;
  color: #fff;
}

.sobre-btn.insta {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366);
  color: #fff;
}

.sobre-pix {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sobre-pix span {
  background: #00b4d8;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
}

.sobre-btn.pix-copiar {
  background: #0d1f3c;
  color: #ffcb05;
  border: none;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#lightbox.open {
  display: flex;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.lb-box {
  position: relative;
  background: #1e2130;
  border-radius: 20px;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
  z-index: 1;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-close:hover { background: rgba(0,0,0,0.8); }

.lb-img-wrap {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #111;
}

.lb-img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  display: block;
}

.lb-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lb-nome {
  font-size: 1rem;
  font-weight: 800;
  color: #f0f0f0;
  line-height: 1.3;
}

.lb-preco {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffcb05;
}

/* ── BOTÃO TOPO ── */
.btn-topo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #ffcb05;
  color: #0d1f3c;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-topo:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ── BOTÃO SHARE ── */
.btn-share {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-share:hover {
  background: #e0e0e0;
}

.hero-cartas {
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6e 50%, #1e4a8a 100%);
}

.hero-cartas h1,
.hero-cartas p {
  color: #fff;
}

.hero-cartas::before { content: '✨'; }
.hero-cartas::after  { content: '🌟'; }

/* ── FILTROS ── */
.filtros {
  padding: 24px 24px 8px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.filtros-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

#filtro-busca, #busca-cartas {
  appearance: none;
  background: #ffcb05;
  border: 3px solid #ffcb05;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #2d2d2d;
  cursor: text;
  transition: all 0.2s;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(255,203,5,0.35);
  outline: none;
}

#filtro-busca::placeholder, #busca-cartas::placeholder {
  color: #7a6200;
  font-weight: 700;
}

#filtro-busca:focus, #busca-cartas:focus {
  box-shadow: 0 6px 16px rgba(255,203,5,0.5);
  transform: translateY(-1px);
}

body.dark #filtro-busca, body.dark #busca-cartas {
  background: #1e2130;
  border-color: #ffcb05;
  color: #f0f0f0;
}

body.dark #filtro-busca::placeholder, body.dark #busca-cartas::placeholder { color: #888; }

#filtro-tipo, #filtro-select, #filtro-ordem {
  appearance: none;
  background: #ffcb05 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%232d2d2d' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 3px solid #ffcb05;
  border-radius: 50px;
  padding: 12px 48px 12px 24px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #2d2d2d;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 260px;
  box-shadow: 0 4px 12px rgba(255, 203, 5, 0.35);
}

#filtro-tipo:hover, #filtro-tipo:focus,
#filtro-select:hover, #filtro-select:focus {
  background-color: #ffd740;
  border-color: #ffd740;
  outline: none;
  box-shadow: 0 6px 16px rgba(255, 203, 5, 0.5);
  transform: translateY(-1px);
}

/* ── GRID ── */
.grid-produtos {
  max-width: 1200px;
  margin: 8px auto 48px;
  padding: 0 24px;
  width: 100%;
}

/* ── NETFLIX ── */
.netflix-secao {
  margin-bottom: 36px;
}

.netflix-titulo {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0d1f3c;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.netflix-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: #0d1f3c;
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
}

.netflix-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.netflix-row::-webkit-scrollbar {
  height: 4px;
}

.netflix-row::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 2px;
}

.netflix-row::-webkit-scrollbar-thumb {
  background: #ffcb05;
  border-radius: 2px;
}

.netflix-row .card {
  min-width: 200px;
  max-width: 200px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Grid quando filtro está ativo */
.grid-filtrado {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ── CARD PRODUTO ── */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f5f5;
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-edicao {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #0d1f3c;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  width: fit-content;
}

.card-condicao {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: #ffcb05;
  border-radius: 6px;
  padding: 2px 8px;
  color: #2d2d2d;
}

.card-lingua {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0d1f3c;
  background: #e8edf5;
  border-radius: 6px;
  padding: 2px 6px;
  letter-spacing: 0.5px;
}

.card-nome {
  font-size: 0.97rem;
  font-weight: 800;
  color: #2d2d2d;
  line-height: 1.3;
}

.card-tipo {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}

.card-footer {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-preco {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0d1f3c;
}

.card-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: 20px;
  transition: background 0.2s;
  width: 100%;
}

.card-wpp:hover {
  background: #1ebe5a;
}

/* ── CARD CARTA ── */
.grid-cartas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 24px auto 48px;
  padding: 0 24px;
  width: 100%;
}

.card-carta {
  cursor: pointer;
}

.card-carta .card-img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-carta:hover .card-img {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.card-carta .card-img-placeholder {
  aspect-ratio: 3 / 4;
  font-size: 4rem;
}

.card-numero {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 600;
}

.card-descricao {
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: #aaa;
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

/* ── FOOTER ── */
footer {
  background: #0d1f3c;
  color: #8899bb;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

footer a {
  color: #ffcb05;
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {

  /* Header */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 36px;
    width: 36px;
  }

  nav a {
    font-size: 0.82rem;
    padding: 5px 10px;
  }

  .wpp-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* Hero */
  .hero {
    padding: 36px 16px 32px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 3px 14px;
  }

  .hero h1 {
    font-size: 1.5rem;
    text-shadow: 2px 2px 0px #0d1f3c;
  }

  .hero p {
    font-size: 0.88rem;
  }

  .sil { font-size: 70px; }
  .sil-1 { font-size: 90px; }

  /* Filtros */
  .filtros {
    padding: 16px 16px 8px;
  }

  .filtros-inner {
    flex-direction: column;
    gap: 10px;
  }

  #filtro-busca,
  #filtro-tipo, #filtro-select, #filtro-ordem {
    width: 100%;
    min-width: unset;
    font-size: 0.9rem;
    padding: 10px 40px 10px 18px;
  }

  #filtro-busca { padding: 10px 18px; }

  /* Grid */
  .grid-produtos {
    padding: 0 12px;
    margin: 8px auto 32px;
  }

  /* Netflix mobile */
  .netflix-secao {
    margin-bottom: 24px;
  }

  .netflix-titulo {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .netflix-row .card {
    min-width: 155px;
    max-width: 155px;
  }

  .netflix-row {
    gap: 10px;
    padding-bottom: 8px;
  }

  /* Grid filtrado mobile */
  .grid-filtrado {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Cards */
  .card-nome {
    font-size: 0.82rem;
  }

  .card-tipo {
    font-size: 0.72rem;
  }

  .card-preco {
    font-size: 1.1rem;
  }

  .card-wpp {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .card-edicao {
    font-size: 0.68rem;
    padding: 2px 8px;
  }

  /* Footer */
  footer {
    padding: 16px;
    font-size: 0.78rem;
  }
}
