/* =============================================
   ITACODIGOS — style.css
   Design: Glassmorphism iOS
   Paleta: Preto/Grafite + Vermelho vibrante
   ============================================= */

/* =============================================
   VARIÁVEIS GLOBAIS
   ============================================= */
:root {
  --bg-base:          #0a0a0c;
  --bg-layer:         #111115;
  --bg-card:          rgba(255, 255, 255, 0.045);
  --bg-card-hover:    rgba(255, 255, 255, 0.075);
  --glass-border:     rgba(255, 255, 255, 0.08);
  --glass-border-red: rgba(220, 30, 30, 0.35);
  --blur:             blur(20px);
  --red:              #e51c1c;
  --red-glow:         rgba(229, 28, 28, 0.35);
  --red-soft:         rgba(229, 28, 28, 0.12);
  --red-dark:         #b01515;
  --text-primary:     #f0f0f2;
  --text-secondary:   rgba(240, 240, 242, 0.55);
  --text-muted:       rgba(240, 240, 242, 0.3);
  --font-display:     'Bebas Neue', sans-serif;
  --font-body:        'Outfit', sans-serif;
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --header-h:         68px;
  --ticker-h:         34px;
  --urgent-bg:        rgba(229, 28, 28, 0.12);
  --urgent-text:      #ff6b6b;
  --warn-bg:          rgba(230, 140, 40, 0.12);
  --warn-text:        #f0a354;
  --ok-bg:            rgba(40, 200, 120, 0.1);
  --ok-text:          #4ecda4;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Header e ticker são estáticos — sem padding-top necessário */
  padding-top: 0;
}

/* Gradiente ambiente de fundo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(229, 28, 28, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(229, 28, 28, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   TICKER DE AVISOS
   ============================================= */
.ticker-bar {
  position: relative;
  top: unset;
  left: unset;
  right: unset;
  z-index: 10;
  height: var(--ticker-h);
  background: rgba(229, 28, 28, 0.12);
  border-bottom: 1px solid rgba(229, 28, 28, 0.25);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(229, 28, 28, 0.2);
  border-right: 1px solid rgba(229, 28, 28, 0.25);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-label i { font-size: 9px; animation: blinkDot 1s infinite; }

.ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
  will-change: transform;
}

.ticker-content span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(240, 240, 242, 0.75);
  letter-spacing: 0.3px;
}

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

/* =============================================
   HEADER (estático — some ao rolar)
   ============================================= */
.header {
  position: relative;
  top: unset;
  left: unset;
  right: unset;
  z-index: 10;
  height: var(--header-h);
  background: rgba(10, 10, 12, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.logo span {
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
}

.search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 13px;
}

#searchInput {
  width: 100%;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0 16px 0 42px;
  font-family: var(--font-body);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#searchInput:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
  background: rgba(255, 255, 255, 0.07);
}

#searchInput::placeholder { color: var(--text-muted); }

.header-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) { .header-count { display: block; } }

/* Botão Telegram */
.btn-telegram {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(41, 182, 246, 0.3);
  background: rgba(41, 182, 246, 0.08);
  color: rgba(41, 182, 246, 0.8);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}

.btn-telegram i { font-size: 15px; }

.btn-telegram:hover {
  border-color: #29b6f6;
  color: #29b6f6;
  background: rgba(41, 182, 246, 0.15);
  box-shadow: 0 0 14px rgba(41, 182, 246, 0.25);
}

.btn-telegram span { display: none; }
@media (min-width: 680px) { .btn-telegram span { display: inline; } }

.btn-admin-access {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 28, 28, 0.3);
  background: rgba(229, 28, 28, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}

.btn-admin-access:hover {
  border-color: var(--red);
  color: var(--text-primary);
  background: rgba(229, 28, 28, 0.15);
  box-shadow: 0 0 14px var(--red-glow);
}

/* =============================================
   ABAS DE NAVEGAÇÃO (sticky glass)
   ============================================= */
.tabs-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  height: 46px;
  padding: 0 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--red);
}

.tab-sep {
  width: 1px;
  height: 22px;
  background: var(--glass-border);
  align-self: center;
  margin: 0 4px;
}

/* =============================================
   FILTROS DE ORDENAÇÃO
   ============================================= */
.filters-bar {
  background: rgba(10, 10, 12, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters-bar::-webkit-scrollbar { display: none; }

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.filter-btn:hover {
  border-color: rgba(229, 28, 28, 0.4);
  color: var(--text-primary);
  background: rgba(229, 28, 28, 0.08);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 14px var(--red-glow);
}

/* =============================================
   HERO BANNER (compacto)
   ============================================= */
.hero-banner {
  position: relative;
  padding: 28px 24px 22px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(229, 28, 28, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 46px);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-banner h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}

.hero-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
  line-height: 1;
}

.hero-stat span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  position: relative;
  z-index: 1;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.results-meta span { font-size: 13px; color: var(--text-muted); }
.results-meta strong { color: var(--text-secondary); font-weight: 600; }

.lancamentos-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(229, 28, 28, 0.06);
  border: 1px solid rgba(229, 28, 28, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.lancamentos-header.show { display: flex; }

.lancamentos-header p {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.lancamentos-header strong { color: var(--text-primary); }

/* =============================================
   GRID DE CARDS — Responsivo
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================
   CARD (Glassmorphism)
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.24s cubic-bezier(.22, .68, 0, 1.2), box-shadow 0.24s, background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s both;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(229, 28, 28, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(229, 28, 28, 0.1), 0 0 30px rgba(229, 28, 28, 0.05);
}

/* Linha de cor no topo do card */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card.urgente::before {
  --card-accent: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.card.atencao::before { --card-accent: #e08c28; }

/* Brilho sutil no topo */
.card::after {
  content: '';
  position: absolute;
  top: 2px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

/* =============================================
   CARD — EFEITO GLOW LANÇAMENTO (novo)
   ============================================= */
.card.lancamento {
  border-color: rgba(229, 28, 28, 0.3);
  animation: fadeUp 0.4s both, glowPulse 2.5s ease-in-out infinite;
}

.card.lancamento::before {
  --card-accent: var(--red);
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 0px rgba(229, 28, 28, 0),
      0 0 0px rgba(229, 28, 28, 0);
  }
  50% {
    box-shadow:
      0 0 18px rgba(229, 28, 28, 0.35),
      0 0 40px rgba(229, 28, 28, 0.12),
      inset 0 0 20px rgba(229, 28, 28, 0.04);
  }
}

/* Cabeçalho do card */
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Badges alinhados no topo do card (linha dedicada) */
.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-height: 22px;
}

.card-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  flex-shrink: 0;
}

.card-logo-placeholder {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(229, 28, 28, 0.35) 0%, rgba(100, 10, 10, 0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-category {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 1px;
}

/* Badges */
.badge-popular {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 200, 50, 0.1);
  color: #f0c040;
  border: 1px solid rgba(255, 200, 50, 0.18);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
  line-height: 1.4;
}

.badge-novo {
  font-size: 10px;
  font-weight: 700;
  background: rgba(229, 28, 28, 0.15);
  color: var(--red);
  border: 1px solid rgba(229, 28, 28, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
  line-height: 1.4;
}

/* Bloco de código */
.code-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 28, 28, 0.06);
  border: 1px dashed rgba(229, 28, 28, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-height: 44px;
}

.code-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  user-select: all;
  word-break: break-all;
}

.code-empty {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Botão copiar */
.btn-copy {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 28, 28, 0.3);
  background: rgba(229, 28, 28, 0.1);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.btn-copy:hover {
  background: rgba(229, 28, 28, 0.2);
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  transform: scale(1.03);
}

.btn-copy.copied {
  background: rgba(40, 200, 120, 0.1);
  border-color: rgba(78, 205, 164, 0.4);
  color: var(--ok-text);
}

/* Tag de validade */
.validity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.validity-tag.urgent {
  background: var(--urgent-bg);
  color: var(--urgent-text);
  border: 1px solid rgba(229, 28, 28, 0.2);
  animation: pulseRed 2s infinite;
}

.validity-tag.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid rgba(230, 140, 40, 0.2);
}

.validity-tag.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid rgba(40, 200, 120, 0.15);
}

.validity-tag.none {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.validity-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.validity-tag.urgent .validity-dot { animation: blinkDot 1.2s infinite; }

/* Botão CTA */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(229, 28, 28, 0.28);
  letter-spacing: 0.3px;
  margin-top: auto;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #f02020 0%, #c01010 100%);
  box-shadow: 0 6px 28px rgba(229, 28, 28, 0.5);
  transform: translateY(-1px);
}

/* =============================================
   ESTADO VAZIO
   ============================================= */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-state.visible { display: flex; }

.empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--red);
  text-shadow: 0 0 16px var(--red-glow);
}

.footer > p:first-of-type {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
  font-weight: 500;
}

.footer-links a:hover { color: var(--red); }

/* Banner gratuito */
.footer-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(78, 205, 164, 0.07);
  border: 1px solid rgba(78, 205, 164, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin: 0 auto 20px;
  max-width: 600px;
  font-size: 12px;
  color: var(--ok-text);
  text-align: left;
}

.footer-free-badge i {
  font-size: 18px;
  flex-shrink: 0;
}

.footer-free-badge strong { color: #6de8c0; }

/* Bloco de compliance */
.footer-compliance {
  max-width: 640px;
  margin: 0 auto 20px;
  background: rgba(229, 28, 28, 0.05);
  border: 1px solid rgba(229, 28, 28, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.footer-compliance-left {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

/* Ícone -18 */
.footer-18 {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--red);
  background: rgba(229, 28, 28, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.footer-18::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 2.5px;
  background: var(--red);
  transform: rotate(-45deg);
  border-radius: 2px;
}

.footer-18 span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--red);
  font-weight: 700;
  line-height: 1;
}

.footer-compliance-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 !important;
}

.footer-compliance-text strong { color: rgba(240, 240, 242, 0.5); }

.footer-copy {
  font-size: 11px;
  color: rgba(240, 240, 242, 0.2);
  margin-top: 4px;
}

/* =============================================
   UPLOAD DE LOGO — ADM
   ============================================= */
.logo-upload-area {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.logo-upload-preview {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(229,28,28,0.18) 0%, rgba(60,0,0,0.3) 100%);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.logo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 28, 28, 0.35);
  background: rgba(229, 28, 28, 0.08);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  width: fit-content;
}

.btn-upload:hover {
  background: rgba(229, 28, 28, 0.16);
  border-color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

.logo-upload-hint {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.logo-upload-name {
  font-size: 11px;
  color: var(--ok-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.logo-url-toggle {
  margin-top: 8px;
}

.btn-url-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-url-toggle:hover { color: var(--text-secondary); }



/* =============================================
   BOTÃO FLUTUANTE TELEGRAM (FAB)
   ============================================= */
.fab-telegram {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e96c8 0%, #0d7ab5 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(29, 155, 209, 0.5), 0 2px 8px rgba(0,0,0,0.4);
  transition: all 0.25s cubic-bezier(.22, .68, 0, 1.2);
  overflow: hidden;
}

.fab-telegram::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.fab-telegram i {
  font-size: 24px;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.fab-telegram:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 40px rgba(29, 155, 209, 0.65), 0 4px 12px rgba(0,0,0,0.5);
}

.fab-telegram:hover i {
  transform: scale(1.1);
}

.fab-telegram:active {
  transform: scale(0.97);
}

/* Tooltip no FAB */
.fab-telegram-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 14, 18, 0.95);
  border: 1px solid rgba(41, 182, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #29b6f6;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(8px);
}

.fab-telegram:hover .fab-telegram-tooltip {
  opacity: 1;
}

/* Pulse ring animado */
.fab-telegram::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(41, 182, 246, 0.4);
  animation: fabPulse 2.5s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.18); opacity: 0; }
}

/* Badge badge-novo e badge-bot sempre mesma altura */
.badge-popular,
.badge-novo,
.badge-bot {
  line-height: 1.4;
  vertical-align: middle;
  align-self: center;
  display: inline-flex;
  align-items: center;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(.22, .68, 0, 1.2);
  background: rgba(17, 17, 21, 0.95);
  border: 1px solid var(--glass-border-red);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 9999;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(229, 28, 28, 0.2), 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

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

/* Toast especial de sucesso (lançamento) */
.toast.success-launch {
  border-color: rgba(78, 205, 164, 0.4);
  box-shadow: 0 0 20px rgba(78, 205, 164, 0.15), 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* =============================================
   OVERLAY (fundo escurecido + fade-in suave)
   ============================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

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

/* Modal login com Glassmorphism vermelho/preto */
.modal-login {
  position: relative;
}

/* =============================================
   MODAL LOGIN (Glassmorphism)
   ============================================= */
.modal-login {
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid var(--glass-border-red);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(229, 28, 28, 0.1);
  animation: slideUp 0.35s cubic-bezier(.22, .68, 0, 1.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-login-logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 6px;
}

.modal-login-logo span {
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
}

.modal-login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.modal-login h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

/* =============================================
   FORMULÁRIOS GENÉRICOS
   ============================================= */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea { height: auto; padding: 10px 14px; resize: none; }
.form-group select { cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* Input datetime-local */
.form-group input[type="datetime-local"] {
  color-scheme: dark;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all 0.18s;
}

.form-check:hover { border-color: rgba(229, 28, 28, 0.3); }

.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--red);
  cursor: pointer;
}

.form-check span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Erro de login */
.login-error {
  background: rgba(229, 28, 28, 0.1);
  border: 1px solid rgba(229, 28, 28, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--urgent-text);
  margin-bottom: 16px;
  display: none;
  gap: 8px;
  align-items: center;
}

.login-error.show { display: flex; }

/* =============================================
   BOTÕES PRIMÁRIO / SECUNDÁRIO / DANGER
   ============================================= */
.btn-primary {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(229, 28, 28, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f02020 0%, #c01010 100%);
  box-shadow: 0 6px 28px rgba(229, 28, 28, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  height: 36px;
  padding: 0 14px;
  background: rgba(229, 28, 28, 0.12);
  border: 1px solid rgba(229, 28, 28, 0.3);
  border-radius: var(--radius-sm);
  color: var(--urgent-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-danger:hover { background: rgba(229, 28, 28, 0.22); }

/* =============================================
   PAINEL ADMIN (Glassmorphism grande)
   ============================================= */
.admin-panel {
  background: rgba(10, 10, 14, 0.98);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.8), 0 0 60px rgba(229, 28, 28, 0.06);
  animation: slideUp 0.35s cubic-bezier(.22, .68, 0, 1.2);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.admin-header-left { display: flex; align-items: center; gap: 12px; }

.admin-badge {
  background: rgba(229, 28, 28, 0.12);
  border: 1px solid rgba(229, 28, 28, 0.25);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
}

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 28, 28, 0.3) transparent;
}

.admin-body::-webkit-scrollbar { width: 4px; }
.admin-body::-webkit-scrollbar-thumb { background: rgba(229, 28, 28, 0.3); border-radius: 4px; }

/* Admin — Tabs internas */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-tab {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-tab:hover { color: var(--text-secondary); border-color: rgba(255, 255, 255, 0.12); }

.admin-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 14px var(--red-glow);
}

/* Aba "Adicionar Código" especial */
#tabCodigo.active {
  background: linear-gradient(135deg, #e51c1c 0%, #7c0000 100%);
  border-color: var(--red);
  box-shadow: 0 0 20px var(--red-glow);
}

/* Admin — Formulário */
.admin-form-section { display: none; }
.admin-form-section.show { display: block; }

.admin-form-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Admin — Lista */
.admin-list-section { display: none; }
.admin-list-section.show { display: block; }

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.18s;
}

.admin-list-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.admin-item-logo {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(229, 28, 28, 0.3) 0%, rgba(100, 10, 10, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.admin-item-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 3px;
}

.admin-item-info { flex: 1; min-width: 0; }
.admin-item-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.admin-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.admin-item-code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  background: rgba(229, 28, 28, 0.08);
  border: 1px dashed rgba(229, 28, 28, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.admin-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  font-size: 13px;
}

.btn-icon:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-icon.delete:hover {
  border-color: rgba(229, 28, 28, 0.4);
  color: var(--urgent-text);
  background: rgba(229, 28, 28, 0.1);
}

/* Indicador de persistência */
.storage-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(78, 205, 164, 0.06);
  border: 1px solid rgba(78, 205, 164, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--ok-text);
}

/* =============================================
   QUICK CODE — FLUXO RÁPIDO
   ============================================= */
.quick-code-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-step {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.quick-step.active-step {
  border-color: rgba(229, 28, 28, 0.3);
}

.quick-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--red-glow);
}

.quick-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* Busca rápida */
.quick-search-wrap {
  position: relative;
}

.quick-search-wrap input {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 14px 0 40px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-search-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.quick-search-wrap input::placeholder { color: var(--text-muted); }

/* Resultados da busca */
.quick-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 28, 28, 0.2) transparent;
}

.quick-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.quick-result-item:hover {
  background: rgba(229, 28, 28, 0.08);
  border-color: rgba(229, 28, 28, 0.3);
}

.quick-result-logo {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(229, 28, 28, 0.35) 0%, rgba(100, 10, 10, 0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.quick-result-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 2px;
}

.quick-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.quick-result-code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
}

.quick-result-arrow {
  color: var(--red);
  font-size: 12px;
  opacity: 0.6;
}

/* Plataforma selecionada */
.quick-selected-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(229, 28, 28, 0.06);
  border: 1px solid rgba(229, 28, 28, 0.2);
  border-radius: var(--radius-sm);
}

.quick-selected-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(229, 28, 28, 0.4) 0%, rgba(100, 10, 10, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 28, 28, 0.2);
}

.quick-selected-info { flex: 1; }
.quick-selected-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.quick-selected-code {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Botão Lançar */
.btn-lancar {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  background: linear-gradient(135deg, #e51c1c 0%, #7c0000 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 6px 28px rgba(229, 28, 28, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-lancar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.btn-lancar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(229, 28, 28, 0.6);
}

.btn-lancar:active { transform: translateY(0); }

/* Sucesso */
.quick-success {
  text-align: center;
  padding: 32px 20px;
  background: rgba(78, 205, 164, 0.04);
  border: 1px solid rgba(78, 205, 164, 0.15);
  border-radius: var(--radius-md);
  animation: fadeUp 0.4s both;
}

.quick-success-icon {
  font-size: 52px;
  color: var(--ok-text);
  margin-bottom: 14px;
  animation: successPop 0.5s cubic-bezier(.22, .68, 0, 1.4);
}

@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.quick-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--ok-text);
  margin-bottom: 6px;
}

.quick-success p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* =============================================
   ANIMAÇÕES
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseRed {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 10px rgba(229, 28, 28, 0.3); }
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* =============================================
   RESPONSIVO — MOBILE
   ============================================= */
@media (max-width: 600px) {
  .header { padding: 0 16px; gap: 12px; }
  .tabs-bar { padding: 0 16px; }
  .filters-bar { padding: 8px 16px; }
  .hero-banner { padding: 20px 16px 16px; }
  .main { padding: 20px 14px 60px; }
  .admin-panel { max-height: 95vh; border-radius: var(--radius-lg); }
  .admin-body { padding: 18px; }
  .admin-header { padding: 16px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-item-code { display: none; }
  .modal-login { padding: 32px 24px; }
  .btn-admin-access span { display: none; }
  .btn-lancar { font-size: 17px; }
}

/* =============================================
   SCROLLBAR CUSTOMIZADA
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(229, 28, 28, 0.3); }

/* =============================================
   ADMIN — SEÇÃO CONFIGURAÇÕES DO SITE
   ============================================= */

/* Card de configuração individual */
.config-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.2s;
}

.config-card:hover {
  border-color: rgba(229, 28, 28, 0.2);
}

.config-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.config-card-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.config-card-hint code {
  background: rgba(229, 28, 28, 0.12);
  border: 1px solid rgba(229, 28, 28, 0.2);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.config-preview-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

/* Preview do ticker no admin */
.config-ticker-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  background: rgba(229, 28, 28, 0.04);
  border: 1px dashed rgba(229, 28, 28, 0.15);
  border-radius: var(--radius-sm);
}

.config-ticker-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 3px 10px;
}

.config-ticker-msg::before {
  content: '•';
  color: var(--red);
  font-size: 10px;
}

/* Textarea das configurações */
#cfgTicker {
  height: auto !important;
  min-height: 72px;
  padding: 10px 14px !important;
  resize: vertical;
  line-height: 1.5;
  font-size: 13px;
}

/* Aba configurações especial */
#tabConfiguracoes.active {
  background: linear-gradient(135deg, rgba(229,28,28,0.9) 0%, rgba(100,10,10,0.95) 100%);
  border-color: var(--red);
}

/* Ajuste: admin-list-section também obedece a show/display */
.admin-form-section,
.admin-list-section {
  display: none;
}

.admin-form-section.show,
.admin-list-section.show {
  display: block;
}

/* =============================================
   FIREBASE — Indicador de status em tempo real
   ============================================= */
.firebase-status {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.firebase-status i {
  font-size: 8px;
  animation: blinkDot 2s infinite;
}

.firebase-status.connecting i { color: #f0a354; }
.firebase-status.online i     { color: #4ecda4; animation: none; }
.firebase-status.error i      { color: var(--red); animation: none; }

/* =============================================
   BADGE — Bot Telegram
   ============================================= */
.badge-bot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(41, 182, 246, 0.15);
  border: 1px solid rgba(41, 182, 246, 0.35);
  color: #29b6f6;
}

/* =============================================
   CARD — Glow pulsante para cards novos/atualizados
   (efeito removido — paleta mantida em vermelho/preto)
   ============================================= */
.card.glow-new {
  /* sem efeito de destaque azul */
}

/* =============================================
   LOADING STATE
   ============================================= */
.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(229, 28, 28, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   ADMIN — Lista com busca
   ============================================= */
.admin-list-search {
  position: relative;
  margin-bottom: 14px;
}

.admin-list-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

#adminSearchInput {
  width: 100%;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 16px 0 40px;
  font-family: var(--font-body);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#adminSearchInput:focus {
  border-color: rgba(229, 28, 28, 0.4);
  box-shadow: 0 0 0 3px var(--red-soft);
}

/* =============================================
   LISTA COMPACTA DE PLATAFORMAS
   ============================================= */

.plataformas-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 40px;
  animation: fadeInUp 0.3s ease both;
}

.plataforma-lista-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  animation: fadeInUp 0.3s ease both;
}

.plataforma-lista-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(229, 28, 28, 0.25);
  transform: translateX(2px);
}

.plataforma-lista-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Wrapper do logo na lista compacta */
.lista-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lista-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.lista-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.04);
}

.plataforma-lista-nome {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

/* Botão Usar Bônus da lista compacta */
.btn-usar-bonus {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-usar-bonus:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 16px var(--red-glow);
  transform: translateY(-1px);
}

.btn-usar-bonus:active {
  transform: translateY(0);
}

.btn-usar-bonus i {
  font-size: 10px;
  opacity: 0.85;
}

/* Estado vazio da lista */
.plataforma-lista-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.plataforma-lista-empty i {
  font-size: 36px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.35;
}

.plataforma-lista-empty p {
  font-size: 14px;
}

/* Responsivo — mobile */
@media (max-width: 480px) {
  .plataforma-lista-item {
    padding: 10px 12px;
    gap: 10px;
  }

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

  .plataforma-lista-nome {
    font-size: 13px;
  }

  .btn-usar-bonus {
    padding: 7px 12px;
    font-size: 11px;
  }
}
