/* ==========================================================================
   Central do Revenda - Design System & Stylesheet
   Tema: Dark Neon Glassmorphism Premium
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #070a12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);

  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.25);
  --secondary: #3b82f6;
  --accent: #8b5cf6;

  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.25);
  --danger: #f43f5e;
  --danger-glow: rgba(244, 63, 94, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ==========================================================================
   Estrutura e Layout
   ========================================================================== */
#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.brand-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ==========================================================================
   Novo Layout: Lateral Sidebar & Topbar Elegante (Anti-Corte de Palavras)
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar Lateral */
.app-sidebar {
  width: 270px;
  min-width: 270px;
  background: rgba(8, 12, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.sidebar-close-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.sidebar-menu-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 18px 20px 8px 20px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.sidebar-link:hover svg {
  color: var(--primary);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.16));
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}
.sidebar-link.active svg {
  color: var(--primary);
}

/* Destaques Especiais no Menu Lateral */
.sidebar-link[data-tab="bot_whatsapp"] {
  color: #86efac;
}
.sidebar-link[data-tab="bot_whatsapp"] svg {
  color: #4ade80;
}
.sidebar-link[data-tab="bot_whatsapp"].active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(6, 182, 212, 0.2));
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.sidebar-link[data-tab="loja"], .sidebar-link[data-tab="loja_revenda"] {
  color: #c084fc;
}
.sidebar-link[data-tab="loja"] svg, .sidebar-link[data-tab="loja_revenda"] svg {
  color: #a855f7;
}
.sidebar-link[data-tab="loja"].active, .sidebar-link[data-tab="loja_revenda"].active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.18));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.sidebar-link .sidebar-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(6, 182, 212, 0.18);
  color: var(--primary);
  border: 1px solid var(--border-glow);
}

/* Rodapé do Sidebar */
.sidebar-footer {
  padding: 14px 14px;
  border-top: 1px solid var(--border-glass);
  background: rgba(4, 7, 13, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-logout-btn:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
}

/* Área Principal */
.app-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar Superior Elegante */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Módulo de Loja de Aplicativos & Smart TVs
   ========================================================================== */
.loja-banner-hero {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.loja-banner-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.loja-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.loja-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.loja-search-box input {
  width: 100%;
  padding-left: 38px;
}
.loja-search-box svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.loja-type-pills {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

.loja-type-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.loja-type-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25));
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Design Idêntico MaxLoja Premium (Cards com Neon Glow, Preços, Recursos, Carousel)
   ========================================================================== */
.loja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.app-card {
  --app-color: #008cff;
  --app-color-rgb: 0, 140, 255;
  --app-color-light: #4db3ff;
  --app-color-dark: #005bb5;
  --app-secondary: #2cc8ff;
  --app-glow: rgba(var(--app-color-rgb), 0.35);
  position: relative;
  border: 1px solid var(--app-color);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(var(--app-color-rgb), 0.12), rgba(4, 10, 28, 0.94) 38%, rgba(3, 10, 24, 0.98));
  padding: 20px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45), 0 0 24px var(--app-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 32px var(--app-glow);
}

.app-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(var(--app-color-rgb), 0.22), transparent 68%);
  right: -80px;
  top: -100px;
  pointer-events: none;
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.app-title img, .preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: linear-gradient(145deg, var(--app-color-light), var(--app-color-dark));
  box-shadow: 0 0 18px var(--app-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.app-card .badge {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--app-color-light);
  padding: 5px 10px;
  border: 1px solid rgba(var(--app-color-rgb), 0.6);
  background: rgba(var(--app-color-rgb), 0.15);
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.app-showcase {
  position: relative;
  height: 210px;
  border: 1px solid rgba(var(--app-color-rgb), 0.65);
  border-radius: 14px;
  overflow: hidden;
  background: #020611;
  margin-bottom: 14px;
}

.carousel-track {
  height: 100%;
  position: relative;
  width: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #020611;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.carousel-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.carousel-dots button.active {
  background: var(--app-color);
  box-shadow: 0 0 8px var(--app-color);
  width: 26px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.price-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 20, 45, 0.68);
  padding: 10px 8px;
  text-align: center;
  border-radius: 10px;
}

.price-grid small {
  display: block;
  color: #c7cede;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.price-grid strong {
  display: block;
  color: var(--app-color-light);
  font-size: 1.12rem;
  font-weight: 800;
  margin-top: 4px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  min-height: 54px;
}

.feature-list li {
  font-size: 0.78rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}

.feature-list i {
  font-style: normal;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--app-color-light), var(--app-color-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 8px var(--app-glow);
  flex: 0 0 auto;
}

.card-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.downloader-code small {
  display: block;
  color: var(--app-color-light);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.downloader-code button {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(11, 18, 40, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: monospace;
}

.downloader-code button:hover {
  border-color: var(--app-color);
  box-shadow: 0 0 12px var(--app-glow);
  background: rgba(20, 30, 60, 0.9);
}

.download-btn {
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--app-color-light), var(--app-color-dark));
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px var(--app-glow);
  transition: all 0.2s ease;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px var(--app-glow);
  color: #fff;
}

.details-link {
  display: block;
  text-align: center;
  color: #dbe7ff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.details-link:hover {
  opacity: 1;
  color: var(--app-color-light);
  text-decoration: underline;
}

.smart-tv-badge-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  border: none !important;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}



@media (max-width: 1200px) {
  .nav-tab-item {
    padding: 5px 8px;
    font-size: 0.77rem;
    gap: 4px;
  }
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

/* Header de Seção */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

/* ==========================================================================
   Cards, Métricas e Estatísticas
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.stat-info h3 {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-info .stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 4px;
  color: #fff;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-icon.rose { background: rgba(244, 63, 94, 0.15); color: var(--danger); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent); }

/* ==========================================================================
   Grids e Cartões de Conteúdo
   ========================================================================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grade de Assinaturas do Revendedor */
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.sub-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.sub-card.status-active::before { background: var(--success); }
.sub-card.status-expiring_soon::before { background: var(--warning); }
.sub-card.status-expired::before { background: var(--danger); }
.sub-card.status-suspended::before { background: #64748b; }

.sub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sub-service-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.sub-service-cat {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-badge.active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.expiring_soon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.expired { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.status-badge.suspended { background: rgba(100, 116, 139, 0.15); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

/* Badges de Modalidade de Cobrança (Mensalista x Por Ativo) */
.badge-billing {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-billing.mensalista {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.badge-billing.por_ativo {
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.billing-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.billing-toggle-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: var(--transition);
  text-align: left;
}
.billing-toggle-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.billing-toggle-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.billing-toggle-btn .title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.billing-toggle-btn .desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.sub-details-list {
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.sub-detail-item .label { color: var(--text-muted); }
.sub-detail-item .val { font-weight: 600; color: #fff; }

/* Galeria de Banners Diários */
.banners-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #041017;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.banner-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.banner-img-container {
  width: 100%;
  height: 220px;
  background: #020617;
  position: relative;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.banner-card:hover .banner-img {
  transform: scale(1.05);
}

.banner-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: #fff;
}

.banner-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.banner-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Abas de Navegação e Filtros Avançados de Mídia (Banners & Vídeos)
   ========================================================================== */
.media-nav-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.media-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.media-nav-tab:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.media-nav-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.media-tab-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.media-nav-tab.active .media-tab-badge {
  background: #38bdf8;
  color: #041017;
}

/* Filtro por Faixa de Preço */
.price-filter-section {
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.price-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-wrap: wrap;
  gap: 8px;
}

.price-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.price-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.price-chip:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.price-chip.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Badge de Preço Flutuante no Card */
.banner-price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.banner-price-tag.no-price {
  background: rgba(71, 85, 105, 0.9);
  color: #e2e8f0;
}

/* Card de Vídeo */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-md);
}

.video-media-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  display: block;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.85);
}

/* ==========================================================================
   Barra de Paginação de Banners & Mídias
   ========================================================================== */
.banners-pagination-wrapper {
  margin: 35px 0 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.pagination-info strong {
  color: #fff;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-page:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.btn-page:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-page.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-color: #38bdf8;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.btn-page-nav {
  font-weight: 700;
  padding: 0 18px;
  background: rgba(30, 41, 59, 0.8);
}

.btn-page-primary {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.3));
  border-color: rgba(6, 182, 212, 0.5);
  color: #38bdf8;
}

.btn-page-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
}

.pagination-ellipsis {
  color: var(--text-dim);
  padding: 0 6px;
  font-weight: 700;
}

/* ==========================================================================
   Tabelas e Listas
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: rgba(30, 41, 59, 0.4);
  padding: 14px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(30, 41, 59, 0.3);
}

/* ==========================================================================
   Botões e Formulários
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  box-shadow: 0 4px 14px var(--success-glow);
}
.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

/* Campos de Formulário */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(15, 23, 42, 0.9);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* ==========================================================================
   Modais
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  position: relative;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
}
.modal-close:hover {
  color: #fff;
}

/* Área de PIX e QR Code */
.pix-box {
  background: rgba(6, 182, 212, 0.05);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 18px 0;
}

.qr-code-holder {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.pix-copy-input {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ==========================================================================
   Toasts e Notificações Flutuantes
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.toast.toast-success { border-color: var(--success); box-shadow: 0 4px 20px var(--success-glow); }
.toast.toast-danger { border-color: var(--danger); box-shadow: 0 4px 20px var(--danger-glow); }
.toast.toast-info { border-color: var(--primary); box-shadow: 0 4px 20px var(--primary-glow); }
.toast.toast-sale { border-color: #22c55e; background: linear-gradient(135deg, #092e1b, #0f172a); box-shadow: 0 0 30px rgba(34, 197, 94, 0.4); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Menu Mobile Flutuante Inferior (PWA Feel)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  padding: 8px 12px;
  z-index: 50;
  justify-content: space-around;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 8px;
}

.mobile-nav-item.active {
  color: var(--primary);
}

@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-btn {
    display: flex;
  }
  .sidebar-backdrop {
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .topbar {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .main-wrapper { padding: 16px 14px 90px 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .subscriptions-grid { grid-template-columns: 1fr; }
  .banners-grid { grid-template-columns: 1fr; }
  .loja-grid { grid-template-columns: 1fr; }
  .loja-banner-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .loja-actions-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Estilos PWA - Botões de Instalação e Modal de Guia
   ========================================================================== */
.btn-install-pwa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.45);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.25);
  white-space: nowrap;
}
.btn-install-pwa:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.45);
  background: linear-gradient(135deg, #22d3ee, #0284c7);
}
.btn-install-pwa svg {
  width: 15px;
  height: 15px;
}
.btn-install-pwa.pwa-ready {
  animation: pwaPulse 2.5s infinite;
}
@keyframes pwaPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(6, 182, 212, 0.25); }
  50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.65), 0 0 35px rgba(59, 130, 246, 0.35); }
}

@media (max-width: 480px) {
  .btn-install-pwa span { display: none; }
  .btn-install-pwa { padding: 8px 10px; }
}

/* Sidebar Install Box */
.sidebar-install-box {
  padding: 10px 14px 4px 14px;
}
.sidebar-install-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sidebar-install-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.16));
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}
.sidebar-install-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-install-icon svg {
  width: 17px;
  height: 17px;
}
.sidebar-install-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-install-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.sidebar-install-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-install-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--primary);
  color: #04070d;
  letter-spacing: 0.5px;
}

/* Login Install Box */
.login-install-box {
  margin-top: 16px;
}
.btn-login-install {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.45);
  color: #22d3ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-login-install:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.85);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}
.btn-login-install svg {
  width: 17px;
  height: 17px;
}

/* Modal de Guia de Instalação PWA */
.pwa-install-modal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pwa-install-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}
.pwa-modal-tabs {
  display: flex;
  gap: 6px;
  background: rgba(4, 7, 13, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
.pwa-modal-tab {
  flex: 1;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.pwa-modal-tab svg {
  width: 15px;
  height: 15px;
}
.pwa-modal-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.pwa-modal-tab.active {
  background: var(--primary);
  color: #04070d;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}
.pwa-modal-tab.active svg {
  color: #04070d;
}
.pwa-tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.pwa-tab-content.active {
  display: flex;
}
.pwa-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
}
.pwa-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pwa-step-content {
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.pwa-step-content strong {
  color: #fff;
}
.pwa-step-highlight {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.82rem;
}
.pwa-success-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 0.82rem;
  line-height: 1.4;
}
.pwa-success-tip svg {
  width: 18px;
  height: 18px;
  color: #4ade80;
  flex-shrink: 0;
}


