/* ============================================
   OMNIREACT - CSS GLOBAL
   ============================================ */

/* ============================================
   1. VARIÁVEIS CSS (THEME)
   ============================================ */
:root {
  /* Cores Primárias */
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  
  /* Cores de Destaque */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Backgrounds */
  --bg-dark: #0f0f1a;
  --bg-dark-secondary: #1a1a2e;
  --bg-dark-tertiary: #252545;
  --bg-light: #ffffff;
  --bg-light-secondary: #f8fafc;
  --bg-light-tertiary: #f1f5f9;
  
  /* Textos */
  --text-dark: #f1f5f9;
  --text-dark-secondary: #94a3b8;
  --text-dark-muted: #64748b;
  --text-light: #1e293b;
  --text-light-secondary: #64748b;
  --text-light-muted: #94a3b8;
  
  /* Bordas */
  --border-dark: rgba(255,255,255,0.1);
  --border-light: rgba(0,0,0,0.1);
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 20px rgba(124,58,237,0.3);
  --shadow-glow-accent: 0 0 20px rgba(245,158,11,0.3);
  
  /* Fontes */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  
  /* Tamanhos */
  --sidebar-width: 0;
  --topbar-height: 56px;
  --bottom-nav-height: 64px;
  --max-width: 1200px;
  
  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-toast: 9999;
  --z-modal: 9990;
  --z-overlay: 9980;
  --z-header: 100;
  --z-bottom-nav: 100;
}

/* Tema Escuro (padrão) */
[data-theme="dark"], :root {
  --bg: var(--bg-dark);
  --bg-secondary: var(--bg-dark-secondary);
  --bg-tertiary: var(--bg-dark-tertiary);
  --text: var(--text-dark);
  --text-secondary: var(--text-dark-secondary);
  --text-muted: var(--text-dark-muted);
  --border: var(--border-dark);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
}

/* Tema Claro */
[data-theme="light"] {
  --bg: var(--bg-light);
  --bg-secondary: var(--bg-light-secondary);
  --bg-tertiary: var(--bg-light-tertiary);
  --text: var(--text-light);
  --text-secondary: var(--text-light-secondary);
  --text-muted: var(--text-light-muted);
  --border: var(--border-light);
  --shadow-card: var(--shadow-md);
}

/* ============================================
   2. RESET E BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  padding-bottom: var(--bottom-nav-height);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ============================================
   3. TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 10px rgba(124,58,237,0.5);
}

/* ============================================
   4. ANIMAÇÕES GLOBAIS
   ============================================ */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade In Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade In Down */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade In Scale */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Slide In Left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slide In Right */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Pulse */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* Glow Pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); }
  50% { box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary); }
}

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Rotate */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Scale In */
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Gradient Shift */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typing */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Count Up */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Hover Lift */
@keyframes cardLift {
  from { transform: translateY(0); box-shadow: var(--shadow-card); }
  to { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
}

/* Particle Float */
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Classes de animação utilitárias */
.anim-fade-in { animation: fadeIn 0.5s ease forwards; }
.anim-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.anim-fade-in-down { animation: fadeInDown 0.6s ease forwards; }
.anim-fade-in-scale { animation: fadeInScale 0.5s ease forwards; }
.anim-slide-left { animation: slideInLeft 0.5s ease forwards; }
.anim-slide-right { animation: slideInRight 0.5s ease forwards; }
.anim-bounce { animation: bounce 2s infinite; }
.anim-pulse { animation: pulse 2s infinite; }
.anim-glow-pulse { animation: glowPulse 2s infinite; }
.anim-float { animation: float 3s ease-in-out infinite; }
.anim-shake { animation: shake 0.5s ease; }
.anim-rotate { animation: rotate 1s linear infinite; }
.anim-scale-in { animation: scaleIn 0.3s ease forwards; }

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   5. BOTÕES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124,58,237,0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: white;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245,158,11,0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* Botão com loading */
.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  margin-left: 8px;
}

/* ============================================
   6. CARDS
   ============================================ */
.card {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124,58,237,0.3);
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* Card de vídeo */
.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: all var(--transition-base);
}

.video-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.video-card .thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .thumbnail img {
  transform: scale(1.1);
}

.video-card .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-card .play-icon {
  width: 60px;
  height: 60px;
  background: rgba(124,58,237,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
  transform: scale(1);
}

/* Card de streamer */
.streamer-card {
  text-align: center;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.streamer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary);
}

.streamer-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}

.streamer-card:hover .avatar {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

/* ============================================
   7. FORMULÁRIOS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Input com ícone */
.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.input-icon .form-control {
  padding-left: 48px;
}

.input-icon:focus-within i {
  color: var(--primary);
}

/* Checkbox e Radio customizados */
.custom-checkbox, .custom-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  transition: all var(--transition-base);
}

.custom-checkbox:hover, .custom-radio:hover {
  border-color: var(--primary);
  background: rgba(124,58,237,0.05);
}

.custom-checkbox input, .custom-radio input {
  display: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.custom-radio .checkmark {
  border-radius: 50%;
}

.custom-checkbox input:checked + .checkmark,
.custom-radio input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================
   8. MODAIS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.active .modal-content {
  animation: fadeInScale 0.4s ease forwards;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Modal grande */
.modal-lg .modal-content {
  max-width: 800px;
}

/* Modal fullscreen */
.modal-full .modal-content {
  max-width: 100%;
  max-height: 100vh;
  border-radius: 0;
}

/* ============================================
   9. TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 4.6s forwards;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-warning::before { background: var(--warning); }
.toast-info::before { background: var(--info); }

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-success .toast-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.toast-error .toast-icon { background: rgba(239,68,68,0.1); color: var(--danger); }
.toast-warning .toast-icon { background: rgba(245,158,11,0.1); color: var(--warning); }
.toast-info .toast-icon { background: rgba(59,130,246,0.1); color: var(--info); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text);
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* ============================================
   10. LOADING E SKELETON
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,26,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

.spinner-accent {
  border-top-color: var(--accent);
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1rem;
  animation: pulse 1.5s ease infinite;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: 16px;
}

/* ============================================
   11. MENU BOTTOM (ESTILO INSTAGRAM)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-bottom-nav);
  backdrop-filter: blur(20px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.bottom-nav-item i {
  font-size: 1.4rem;
  transition: all var(--transition-fast);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Indicador de notificação */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s ease;
}

/* ============================================
   12. HEADER / TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: var(--z-header);
  backdrop-filter: blur(20px);
}

.topbar-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topbar-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ============================================
   13. RATING / ESTRELAS
   ============================================ */
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star {
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-star.active,
.rating-star:hover {
  color: var(--accent);
}

.rating-star:hover {
  transform: scale(1.2);
}

.rating-value {
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
}

/* ============================================
   14. BADGES E TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary { background: rgba(124,58,237,0.1); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-accent { background: rgba(245,158,11,0.1); color: var(--accent); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ============================================
   15. PROGRESS BAR
   ============================================ */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 2s infinite;
}

/* ============================================
   16. TABS
   ============================================ */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--primary);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ============================================
   17. LISTAS
   ============================================ */
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.list-item:hover {
  background: var(--bg-tertiary);
}

.list-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.list-item-action {
  flex-shrink: 0;
}

/* ============================================
   18. DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
}

/* ============================================
   19. EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--text-muted);
  animation: float 3s ease-in-out infinite;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-text {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   20. UTILITÁRIOS
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.content-area {
  padding-top: calc(var(--topbar-height) + 20px);
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--bg-secondary); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded-full { border-radius: 50%; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }

.hidden { display: none !important; }

/* ============================================
   21. RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
  :root {
    --topbar-height: 52px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .card {
    border-radius: 12px;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
  
  body {
    padding-bottom: 0;
  }
  
  .content-area {
    padding-bottom: 20px;
  }
}

/* ============================================
   22. EFEITOS ESPECIAIS
   ============================================ */

/* Partículas de fundo */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat linear infinite;
}

/* Gradiente animado */
.gradient-animated {
  background: linear-gradient(-45deg, var(--primary), var(--primary-dark), var(--accent), var(--primary));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Neon glow */
.neon {
  box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 20px var(--primary);
}

/* ============================================
   23. PÁGINA DE LOGIN ESPECIAL
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 6s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

.login-card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.login-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   24. GRID DE VÍDEOS
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================
   25. PLAYER DE VÍDEO
   ============================================ */
.video-player-container {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-player-container video,
.video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player-container:hover .video-player-overlay {
  opacity: 1;
}

/* ============================================
   26. TIMELINE / FEED
   ============================================ */
.feed-item {
  background: var(--bg-secondary);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease forwards;
}

.feed-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-header-info {
  flex: 1;
}

.feed-header-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.feed-header-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}

.feed-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.feed-action-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.feed-action-btn.liked {
  color: var(--danger);
}

/* ============================================
   27. PAGAMENTO PIX
   ============================================ */
.pix-container {
  text-align: center;
  padding: 24px;
}

.pix-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  background: white;
  padding: 16px;
  border-radius: 16px;
  animation: fadeInScale 0.5s ease;
}

.pix-qr img {
  width: 100%;
  height: 100%;
}

.pix-code {
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  margin-bottom: 16px;
  position: relative;
}

.pix-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
}

.pix-status-pending {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
}

.pix-status-paid {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  animation: pulse 2s infinite;
}

/* ============================================
   28. UPLOAD DE ARQUIVO
   ============================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(124,58,237,0.05);
}

.upload-zone i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.upload-zone-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.upload-zone-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-progress {
  margin-top: 20px;
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  margin-top: 16px;
}

.upload-file-info i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* ============================================
   29. SEARCH BAR
   ============================================ */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}

.search-bar i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ============================================
   30. STORY RING (ESTILO INSTAGRAM)
   ============================================ */
.story-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary-light));
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.story-ring:hover {
  transform: scale(1.1);
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.story-ring.live::after {
  content: 'LIVE';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}

/* ============================================
   31. RESPONSIVE TABLE
   ============================================ */
.table-responsive {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-tertiary);
}

.table td {
  font-size: 0.9rem;
}

/* ============================================
   32. SWITCH TOGGLE
   ============================================ */
.switch {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: 26px;
  transition: all var(--transition-base);
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.switch input:checked + .switch-slider {
  background: var(--primary);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(22px);
}

/* ============================================
   33. AVATAR GROUP
   ============================================ */
.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  object-fit: cover;
}

.avatar-group img:first-child {
  margin-left: 0;
}

/* ============================================
   34. PRICE TAG
   ============================================ */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
  animation: fadeInScale 0.3s ease;
}

.price-tag small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ============================================
   35. COUNTDOWN TIMER
   ============================================ */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.countdown-item {
  text-align: center;
  min-width: 60px;
}

.countdown-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   36. NOTIFICATION BELL
   ============================================ */
.notif-bell {
  position: relative;
  animation: none;
}

.notif-bell.has-unread {
  animation: swing 2s ease infinite;
}

@keyframes swing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
}

/* ============================================
   37. HOVER CARD EFFECT
   ============================================ */
.hover-reveal {
  position: relative;
  overflow: hidden;
}

.hover-reveal .reveal-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.hover-reveal:hover .reveal-content {
  transform: translateY(0);
}

/* ============================================
   38. MASONRY GRID
   ============================================ */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .masonry-grid { columns: 2; }
}

@media (max-width: 640px) {
  .masonry-grid { columns: 1; }
}

/* ============================================
   39. LOADING STATES
   ============================================ */
.btn-skeleton {
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.btn-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 1.5s infinite;
}

/* ============================================
   40. SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 430px) {
.login-card {
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
} } 

/* ============================================
   FIM DO CSS GLOBAL
   ============================================ */