/* ==========================================================================
   PORTAL DE INTEGRADORES - IE TECNOLOGIA
   Design System Clean / Claro: Fundo Branco, Vermelho & Preto
   ========================================================================== */

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

:root {
  /* Brand Palette - Clean Branco, Vermelho & Preto */
  --color-primary: #dc2626;          /* Vermelho Vibrante IE */
  --color-primary-hover: #b91c1c;    /* Vermelho Escuro */
  --color-primary-light: #ef4444;    /* Vermelho Claro */
  --color-primary-soft: #fef2f2;     /* Fundo Vermelho Suave */
  --color-primary-border: #fecaca;   /* Borda Vermelho Suave */

  --color-black: #0f172a;            /* Preto Nobre Slate 900 */
  --color-black-soft: #1e293b;       /* Preto Secundário Slate 800 */
  --color-black-muted: #334155;      /* Slate 700 */

  /* Fundos Claros */
  --bg-body: #f8fafc;                /* Fundo Geral Branco Suave */
  --bg-card: #ffffff;                /* Fundo de Cards / Containers */
  --bg-card-secondary: #f1f5f9;      /* Fundo Cinza Claro */
  --bg-input: #ffffff;               /* Input Branco */
  --bg-border: #e2e8f0;              /* Linhas e Divisórias Suaves */
  --bg-border-focus: #dc2626;

  /* Cores de Tipografia */
  --text-main: #0f172a;              /* Texto Principal Preto Escuro */
  --text-muted: #475569;             /* Texto Secundário Cinza Médio */
  --text-dim: #64748b;               /* Texto Diminuído */
  --text-highlight: #dc2626;         /* Destaque em Vermelho */

  /* Estados */
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-info: #0284c7;

  /* Raios e Sombras Limpas */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-red: 0 4px 14px rgba(220, 38, 38, 0.25);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.25;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.text-red { color: var(--color-primary); }
.text-black { color: var(--color-black); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

.text-gradient-red {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.btn-black {
  background: var(--color-black);
  color: #ffffff;
  border-color: var(--color-black);
}

.btn-black:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  color: var(--color-black);
  border-color: var(--bg-border);
}

.btn-outline:hover {
  background: var(--bg-card-secondary);
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn-outline-red {
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-red:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-hover);
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary, .badge-red {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
}

.badge-black {
  background: #0f172a;
  color: #ffffff;
}

.badge-accent, .badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Cards & Containers */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

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

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

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-black);
}

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

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

.form-control {
  width: 100%;
  padding: 11px 15px;
  background-color: var(--bg-input);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin-top: 2px;
}

/* Alertas & Notificações */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

/* ==========================================================================
   HEADER PÚBLICO (Apenas Landing Page, Login, Cadastro)
   ========================================================================== */
.public-header {
  background: #ffffff;
  border-bottom: 1px solid var(--bg-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   NOVO LAYOUT DE NAVEGAÇÃO ÚNICA (SIDEBAR LATERAL EXCLUSIVA)
   ========================================================================== */
.portal-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-body);
}

/* Topbar Mobile (Apenas em telas pequenas para abrir o menu) */
.mobile-topbar {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--bg-border);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.mobile-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-topbar-brand img {
  height: 32px;
}

.mobile-topbar-toggle {
  background: transparent;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-black);
}

/* Barra Lateral Limpa & Fixa */
.sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid var(--bg-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid var(--bg-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%;
}

.sidebar-brand img {
  height: 42px;
  max-width: 100%;
  object-fit: contain;
}

.sidebar-content {
  padding: 20px 14px;
  overflow-y: auto;
  flex: 1;
}

.sidebar-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--color-black-soft);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.sidebar-link.active {
  background: var(--color-primary);
  color: #ffffff;
}

.sidebar-link .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
}

.sidebar-link:hover .icon {
  color: var(--color-primary);
}

.sidebar-link.active .icon {
  color: #ffffff;
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
}

.sidebar-badge-counter {
  margin-left: auto;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.sidebar-link.active .sidebar-badge-counter {
  background: #ffffff;
  color: var(--color-primary);
}

.sidebar-footer {
  padding: 18px 16px;
  border-top: 1px solid var(--bg-border);
  background: var(--bg-card-secondary);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.user-details {
  overflow: hidden;
  line-height: 1.3;
}

.user-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-black);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-role {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--bg-border);
  color: var(--color-danger);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-logout-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Área de Conteúdo do Portal */
.portal-content {
  flex: 1;
  padding: 36px 40px 60px;
  overflow-y: auto;
  max-width: 1400px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 1.9rem;
  color: var(--color-black);
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Grid Utilities */
.grid { display: grid; gap: 22px; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   CARDS DE OFERTAS (Clean Branco/Vermelho/Preto)
   ========================================================================== */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.offer-badge-discount {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  z-index: 2;
}

.offer-image-wrap {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid var(--bg-border);
}

.offer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.offer-card:hover .offer-image {
  transform: scale(1.04);
}

.offer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.offer-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.offer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
  line-height: 1.35;
}

.offer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.offer-pricing {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--bg-border);
}

.price-de {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-por {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-black);
  font-family: 'Outfit', sans-serif;
}

.coupon-box {
  background: var(--color-primary-soft);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 0.82rem;
}

.coupon-box code {
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CARDS DE MANUAIS & VÍDEOS
   ========================================================================== */
.manual-card {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.manual-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.manual-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.manual-info { flex-grow: 1; }
.manual-code { font-size: 0.78rem; color: var(--color-primary); font-weight: 700; }
.manual-name { font-size: 1rem; font-weight: 700; color: var(--color-black); margin: 2px 0; }
.manual-meta { font-size: 0.78rem; color: var(--text-dim); display: flex; gap: 14px; }

/* ==========================================================================
   YOUTUBE STYLE VIDEO HUB & WATCH INTERFACE
   ========================================================================== */
.yt-chips-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.yt-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: #f1f5f9;
  color: var(--color-black);
  border: 1px solid var(--bg-border);
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.yt-chip:hover {
  background: #e2e8f0;
  color: var(--color-black);
}

.yt-chip.active {
  background: var(--color-black);
  color: #ffffff;
  border-color: var(--color-black);
}

/* Grid de Vídeos Estilo YouTube */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
}

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

.yt-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000000;
  overflow: hidden;
}

.yt-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.yt-card:hover .yt-thumb-wrap img {
  transform: scale(1.05);
}

.yt-thumb-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.yt-card:hover .yt-thumb-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--color-primary);
}

.yt-body {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.yt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

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

.yt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-channel {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.yt-category-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 7px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Watch Mode / Cinema Player no Estilo YouTube */
.yt-watch-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.yt-player-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.yt-player-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-watch-details {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}

.yt-watch-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 12px;
}

.yt-watch-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 16px;
}

.yt-watch-channel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-watch-channel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.yt-watch-desc {
  background: var(--bg-card-secondary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.yt-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.yt-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.yt-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-black);
}

.yt-rec-card {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 8px;
}

.yt-rec-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.yt-rec-card.active-playing {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

.yt-rec-thumb {
  width: 130px;
  height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000000;
}

.yt-rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-rec-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

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

.yt-rec-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.active-playing .yt-rec-title {
  color: var(--color-primary);
}

.yt-rec-channel {
  font-size: 0.76rem;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .yt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yt-watch-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .yt-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STAT METRICS CARDS
   ========================================================================== */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-icon.red { background: var(--color-primary-soft); color: var(--color-primary); }
.stat-icon.black { background: #f1f5f9; color: #0f172a; }
.stat-icon.green { background: #dcfce7; color: #15803d; }
.stat-icon.amber { background: #fef3c7; color: #b45309; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--color-black);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.table th {
  padding: 12px 16px;
  background: var(--bg-card-secondary);
  color: var(--color-black-soft);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--bg-border);
}

.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--bg-border);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* ==========================================================================
   POPUP FLUTUANTE MODAL NO CENTRO DA TELA
   ========================================================================== */
.announcement-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.announcement-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border-top: 6px solid var(--color-primary);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.announcement-modal-overlay.active .announcement-modal-box {
  transform: scale(1);
}

.announcement-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-black);
  transition: background var(--transition-fast);
}

.announcement-modal-close:hover {
  background: #fee2e2;
  color: var(--color-primary);
}

.announcement-modal-badge {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.announcement-modal-title {
  font-size: 1.5rem;
  color: var(--color-black);
  margin-bottom: 12px;
}

.announcement-modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.announcement-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   LANDING PAGE SECTIONS (Claro, Branco, Vermelho & Preto)
   ========================================================================== */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--bg-border);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  color: var(--color-primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
  color: var(--color-black);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.features-section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
  color: var(--color-black);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: left;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-black);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #f1f5f9;
  padding: 50px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand img {
  height: 38px;
  margin-bottom: 14px;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
}
