:root {
  --bg: #0f0f14;
  --bg-elevated: #1a1a22;
  --bg-card: #1e1e28;
  --border: #2a2a36;
  --text: #f4f4f6;
  --text-muted: #9a9aa8;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #ec4899);
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 480px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 32px;
}

/* Topbar */
/* App download banner (topo, persistente) */
.app-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.app-banner .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.app-banner .icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-banner .text {
  flex: 1;
  min-width: 0;
}
.app-banner .text .t1 {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-banner .text .t2 {
  font-size: 11px;
  color: var(--text-muted);
}
.app-banner .cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.app-banner .close {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  background: none;
}

/* CTA grande de download na home */
.app-promo {
  margin: 22px 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-promo .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.app-promo .icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-promo .info { flex: 1; min-width: 0; }
.app-promo .info .t1 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.app-promo .info .t2 {
  font-size: 11.5px;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 380px) {
  .app-promo .info .t2 { display: block; }
}
.app-promo .badge-store {
  flex-shrink: 0;
  height: 44px;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(15,15,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  flex-shrink: 0;
}
.topbar .title {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand .logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.brand .name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.2px;
}

/* Search */
.search-bar {
  margin: 14px 16px 6px;
}
.search-bar input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* Hero */
.hero {
  margin: 8px 16px 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  color: white;
}
.hero h1 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.hero p {
  font-size: 13px;
  opacity: 0.9;
}

/* Section */
.section { margin: 22px 16px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 800;
}
.section-head a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* Category chips */
/* Tabs Stickers / Wallpapers */
.tabs {
  display: flex;
  gap: 8px;
  margin: 4px 16px 18px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.tabs .tab {
  flex: 1;
  text-align: center;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
.tabs .tab.active {
  background: var(--accent-gradient);
  color: white;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.active {
  background: var(--accent-gradient);
  border-color: transparent;
}

/* Grid de packs */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pack-card .thumb {
  aspect-ratio: 1;
  width: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
}
.pack-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pack-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.pack-card .info {
  padding: 10px 12px 12px;
}
.pack-card .info .name {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pack-card .info .meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Wallpaper grid (vertical por omissão, horizontal quando categorizado) */
.grid-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.wall-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  background: var(--bg-card);
}
.wall-card.horizontal {
  aspect-ratio: 16/9;
  grid-column: span 2; /* wallpapers horizontais ocupam a largura toda na grelha */
}
.wall-card img,
.wall-card video {
  width: 100%; height: 100%; object-fit: cover;
}
.wall-card .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}
.wall-card .overlay .name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges de "animado" / "com som" nos cartões de wallpaper */
.media-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.media-badge {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Category cards (carousel) */
.cat-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-card {
  flex-shrink: 0;
  width: 92px;
  text-align: center;
}
.cat-card .img-wrap {
  width: 92px; height: 92px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.cat-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Página de detalhe (pack/wallpaper) ---- */
.detail-hero {
  position: relative;
}
.detail-hero .cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-card);
}
.detail-hero.wallpaper .cover {
  aspect-ratio: 9/16;
  max-height: 70vh;
}
.detail-hero.wallpaper.horizontal .cover {
  aspect-ratio: 16/9;
  max-height: none;
}
.sound-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detail-body {
  padding: 18px 16px;
}
.detail-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.detail-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.stat-row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat .val {
  font-size: 15px;
  font-weight: 800;
}
.stat .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
}
.btn-primary {
  background: var(--accent-gradient);
  color: white;
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-block { width: 100%; }

.share-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Stickers preview grid dentro da página do pack */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sticker-grid .sticker {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sticker-grid .sticker img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 6px;
}

/* Related */
.related-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.related-scroll::-webkit-scrollbar { display: none; }
.related-scroll .pack-card { width: 150px; flex-shrink: 0; }
.related-scroll .wall-card { width: 130px; flex-shrink: 0; }

/* Sticky bottom CTA on detail pages (mobile) */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15,15,20,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .emoji { font-size: 40px; margin-bottom: 10px; }

.footer-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 24px 16px 8px;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px 16px;
}
.pagination a, .pagination span {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.pagination .current {
  background: var(--accent-gradient);
  border-color: transparent;
}

@media (min-width: 540px) {
  :root { --max-width: 560px; }
  .grid, .grid-wall { grid-template-columns: repeat(3, 1fr); }
}

/* Badge de resolução (SD/HD/FHD/QHD/4K/8K) no canto oposto dos badges de media */
.quality-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.quality-badge {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-quality {
  color: var(--text, #fff);
}

/* ---- Barra de filtros (formato / qualidade / som) ---- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-gradient);
  font-size: 11px;
  font-weight: 800;
  color: white;
}
.active-filters .chip.clear-all {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
}

/* ---- Painel de filtros (bottom sheet) ---- */
.filter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.filter-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.filter-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--max-width);
  transform: translate(-50%, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 8px 18px 18px;
  max-height: 82vh;
  overflow-y: auto;
  transition: transform 0.25s ease;
  z-index: 41;
}
.filter-sheet.open {
  transform: translate(-50%, 0);
}
.filter-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin: 6px auto 12px;
}
.filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.filter-sheet-head h3 {
  font-size: 17px;
  font-weight: 800;
}
.filter-sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-section {
  margin-bottom: 18px;
}
.filter-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.filter-option:has(input:checked),
.filter-option.active {
  background: var(--accent-gradient);
  border-color: transparent;
}
.filter-option em {
  font-style: normal;
  opacity: 0.75;
  font-size: 11.5px;
}
.filter-option-toggle {
  width: 100%;
}
.filter-sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.filter-sheet-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* =========================================================
 * Login / Publicar wallpaper (usuário)
 * ========================================================= */
.auth-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.account-bar strong { color: var(--text); }
.account-bar a { color: var(--accent); font-weight: 600; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-select { appearance: none; }
.form-file { padding: 10px 14px; }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* "Os meus wallpapers" — mesmo grid dos wallpapers públicos, com badge de estado */
.my-upload-card { position: relative; }
.status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.status-approved { background: rgba(34, 197, 94, 0.22); color: #86efac; }
.status-pending { background: rgba(250, 204, 21, 0.22); color: #fde68a; }
.status-rejected { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }

/* Botão flutuante "Publicar", visível na listagem de wallpapers */
.publish-fab {
  position: fixed;
  right: 50%;
  transform: translateX(calc(var(--max-width) / 2 - 68px));
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}
@media (max-width: 480px) {
  .publish-fab { right: 16px; transform: none; }
}

/* =========================================================
 * Separador Vertical / Horizontal / Live (wallpapers.php)
 * ========================================================= */
.view-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.view-tabs::-webkit-scrollbar { display: none; }
.view-tab {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.view-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

/* =========================================================
 * Banner de destaque "Publicar wallpaper"
 * ========================================================= */
.publish-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
.publish-banner-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.publish-banner-text { flex: 1; min-width: 0; }
.publish-banner-text .t1 { font-weight: 800; font-size: 15px; }
.publish-banner-text .t2 { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.publish-banner-arrow { font-size: 20px; font-weight: 800; flex-shrink: 0; }

/* Botão flutuante "Publicar" — com pulso para chamar a atenção */
.publish-fab {
  animation: publish-fab-pulse 2.4s ease-in-out infinite;
}
@keyframes publish-fab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45); }
  50% { box-shadow: 0 8px 30px rgba(236, 72, 153, 0.65), 0 0 0 6px rgba(139, 92, 246, 0.15); }
}

/* =========================================================
 * Login com Google / divisor de formulários
 * ========================================================= */
.btn-google {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid var(--border);
  gap: 10px;
  margin-bottom: 14px;
}
.btn-google:active { opacity: 0.85; }
.google-icon { width: 18px; height: 18px; flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
 * Beta fechado (beta.php + banner na home/rodapé)
 * ========================================================= */
.beta-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 16px 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.beta-banner-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.beta-banner-text { flex: 1; min-width: 0; }
.beta-banner-text .t1 { font-weight: 800; font-size: 14.5px; }
.beta-banner-text .t2 { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.beta-banner-arrow { font-size: 20px; font-weight: 800; color: var(--success); flex-shrink: 0; }

.beta-hero {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.android-check {
  align-items: flex-start;
  text-align: left;
}
.android-check span { line-height: 1.4; }

/* =========================================================
 * Gestão do Beta (beta_admin.php)
 * ========================================================= */
.beta-admin-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  flex: 1;
  padding: 14px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.stat-num { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.stat-highlight {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}
.stat-highlight .stat-num { color: #86efac; }

.beta-signup-list { display: flex; flex-direction: column; gap: 8px; }
.beta-signup-row {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.beta-signup-row.is-new {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.07);
}
.beta-signup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.beta-signup-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.beta-signup-date { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }
.beta-signup-email { font-size: 13px; color: var(--accent); margin-top: 3px; display: inline-block; }
.beta-new-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #22c55e;
  color: #0b1a0f;
}
