/* ===================================
   ATOMIC COMMUNITY - MODERN DARK THEME
   Inspirado em Netflix e design moderno
   =================================== */

/* === VARIÁVEIS CSS === */
:root {
  --primary-color: #e50914;
  --primary-hover: #f40612;
  --secondary-color: #564d4d;
  --dark-bg: #141414;
  --darker-bg: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --card-bg: #1f1f1f;
  --border-color: #2a2a2a;
  --success-color: #46d369;
  --warning-color: #e87c03;
  --gradient-primary: linear-gradient(135deg, #e50914 0%, #831010 100%);
  --gradient-dark: linear-gradient(180deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === RESET E BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color);
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(229,9,20,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(229,9,20,0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === BOTÕES === */
.btn-primary-custom {
  background: var(--gradient-primary);
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::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 var(--transition-slow);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-secondary-custom {
  background: transparent;
  border: 2px solid var(--text-primary);
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: var(--text-primary);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

/* === FEATURES SECTION === */
.features-section {
  padding: 5rem 2rem;
  background: var(--darker-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* === STATS SECTION === */
.stats-section {
  padding: 5rem 2rem;
  background: var(--dark-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === CTA SECTION === */
.cta-section {
  padding: 6rem 2rem;
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,9,20,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* === LOGGED AREA === */
.logged-area {
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  background: var(--dark-bg);
}

.welcome-message {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.welcome-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

/* === NAVBAR === */
.navbar-dark-custom {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar-scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* === FOOTER === */
footer {
  background: var(--darker-bg);
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--text-secondary);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* === PARTICLES BACKGROUND === */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-30px) translateX(30px);
  }
  50% {
    transform: translateY(-60px) translateX(-30px);
  }
  75% {
    transform: translateY(-30px) translateX(30px);
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .navbar-dark-custom {
    padding: 0.8rem 1rem;
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* === UTILITIES === */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container-custom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* ===================================
   AUTHENTICATION PAGES
   =================================== */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  background: var(--gradient-dark);
  position: relative;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(229,9,20,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(229,9,20,0.08) 0%, transparent 50%);
  z-index: 0;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.auth-wrapper-large {
  max-width: 1200px;
  grid-template-columns: 1.2fr 0.8fr;
}

.auth-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.auth-card-large {
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.auth-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FORM STYLES */
.form-group-custom {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group-half {
  margin-bottom: 0;
}

.form-label-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.label-icon {
  font-size: 1.1rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-control-custom::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.form-check-custom {
  margin: 1.5rem 0;
}

.form-check-label-custom {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-check-input-custom {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.text-danger-custom {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #ff6b6b;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-danger {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #ff6b6b;
}

/* BUTTON STYLES */
.btn-auth-primary {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.2rem;
}

/* AUTH LINKS */
.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  margin: 0 0.75rem;
}

.auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-link-strong {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-left: 0.5rem;
}

.auth-link-strong:hover {
  color: var(--primary-hover);
}

.auth-text {
  color: var(--text-secondary);
}

/* PASSWORD REQUIREMENTS */
.password-requirements {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.requirements-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.requirements-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* INFO CARD */
.auth-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-content {
  text-align: center;
}

.info-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.info-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.info-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item-small {
  text-align: center;
}

.stat-number-small {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.stat-label-small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* BENEFITS LIST */
.benefits-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.benefit-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.info-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.info-footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.info-footer-text strong {
  color: var(--success-color);
  font-weight: 700;
}

/* RESPONSIVE AUTH PAGES */
@media (max-width: 992px) {
  .auth-wrapper,
  .auth-wrapper-large {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .auth-info-card {
    order: -1;
  }

  .info-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .auth-container {
    padding: 5rem 1rem 2rem;
  }

  .auth-card,
  .auth-card-large {
    padding: 2rem 1.5rem;
  }

  .auth-icon {
    font-size: 3rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-subtitle,
  .info-text {
    font-size: 0.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-group-half {
    margin-bottom: 0;
  }

  .benefits-list {
    gap: 1.25rem;
  }

  .benefit-icon {
    font-size: 1.75rem;
  }

  .benefit-title {
    font-size: 0.95rem;
  }

  .benefit-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .auth-card,
  .auth-card-large {
    padding: 1.75rem 1.25rem;
  }

  .auth-title {
    font-size: 1.35rem;
  }

  .form-control-custom {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .btn-auth-primary {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .info-stats {
    gap: 1rem;
  }

  .stat-number-small {
    font-size: 1.5rem;
  }

  .stat-label-small {
    font-size: 0.7rem;
  }
}

/* ===================================
   USER DROPDOWN
   =================================== */

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-primary);
  font-weight: 500;
}

.user-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.avatar-icon {
  filter: brightness(0) invert(1);
}

.user-name {
  font-size: 0.9rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.user-dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.avatar-icon-large {
  filter: brightness(0) invert(1);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name-full {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-email {
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.dropdown-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.dropdown-item-logout {
  color: #ff6b6b;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.dropdown-item-logout:hover {
  background: rgba(255, 107, 107, 0.1);
  color: #ff5252;
}

/* ===================================
   NAVBAR TABS (ÁREA LOGADA)
   =================================== */

.navbar-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary) !important;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  font-weight: 500;
  position: relative;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary) !important;
}

.nav-tab.active,
.nav-tab:active {
  background: rgba(229, 9, 20, 0.15);
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color);
}

.tab-icon {
  font-size: 1.1rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===================================
   RESPONSIVE NAVBAR
   =================================== */

@media (max-width: 992px) {
  .navbar-tabs {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
    border-radius: 0;
  }

  .navbar-actions {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .user-dropdown-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .user-dropdown-menu.show {
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .user-name {
    display: none;
  }

  .dropdown-arrow {
    display: none;
  }

  .user-dropdown-toggle {
    padding: 0.5rem;
    border-radius: 50%;
  }
}

/* ===================================
   LOGGED AREA SPACING
   =================================== */

.logged-area {
  padding-top: 8rem;
  min-height: 100vh;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
  .logged-area {
    padding-top: 7rem;
  }
}

/* ===================================
   PWA - BOTTOM NAVIGATION
   =================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(229, 9, 20, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4), 0 -1px 0 rgba(229, 9, 20, 0.1);
  display: none; /* Hidden by default */
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 1000;
  height: calc(60px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
  max-width: 100px;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #e50914, #ff4757);
  border-radius: 0 0 3px 3px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-icon {
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(100%);
}

.bottom-nav-item.active .bottom-nav-icon {
  filter: grayscale(0%) drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
  transform: scale(1.1);
}

.bottom-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active {
  color: #e50914;
}

.bottom-nav-item.active .bottom-nav-label {
  font-weight: 700;
}

/* Show bottom nav only on mobile and in PWA mode */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  /* Hide top navbar tabs on mobile when logged in */
  .navbar-tabs {
    display: none !important;
  }

  /* Adjust content padding for bottom nav */
  .logged-area {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  /* Adjust footer for bottom nav */
  footer {
    margin-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

/* PWA Mode specific styles */
body.pwa-mode {
  padding-bottom: env(safe-area-inset-bottom);
}

body.pwa-mode .bottom-nav {
  display: flex;
}

body.pwa-mode .navbar-tabs {
  display: none !important;
}

/* iOS specific adjustments */
body.ios-device .bottom-nav {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Android specific adjustments */
body.android-device .bottom-nav {
  padding-bottom: 0.5rem;
}

/* ===================================
   PWA - INSTALL BUTTON
   =================================== */

.pwa-install-btn {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  right: 1rem;
  background: linear-gradient(135deg, #e50914, #c20812);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 24px rgba(229, 9, 20, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
}

.pwa-install-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.6);
}

.pwa-install-btn:active {
  transform: translateY(-2px) scale(0.98);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(229, 9, 20, 0.4);
  }
  50% {
    box-shadow: 0 4px 32px rgba(229, 9, 20, 0.7);
  }
}

@media (max-width: 768px) {
  .pwa-install-btn {
    bottom: calc(70px + env(safe-area-inset-bottom));
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ===================================
   PWA - INSTALL BANNER
   =================================== */

.pwa-install-banner {
  position: fixed;
  bottom: -200px;
  left: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(229, 9, 20, 0.2);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.show {
  bottom: calc(1rem + env(safe-area-inset-bottom));
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.4));
}

.banner-text {
  flex: 1;
}

.banner-text strong {
  display: block;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.25rem;
}

.banner-text p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.banner-install-btn {
  background: linear-gradient(135deg, #e50914, #c20812);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.banner-install-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.5);
}

.banner-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

@media (max-width: 768px) {
  .pwa-install-banner {
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.25rem;
  }

  .pwa-install-banner.show {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .banner-content {
    flex-wrap: wrap;
  }

  .banner-icon {
    font-size: 2rem;
  }

  .banner-text strong {
    font-size: 1rem;
  }

  .banner-text p {
    font-size: 0.8rem;
  }

  .banner-install-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ===================================
   PWA - UPDATE NOTIFICATION
   =================================== */

.update-notification {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.98));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  min-width: 320px;
  max-width: 90%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-notification.show {
  top: calc(1rem + env(safe-area-inset-top));
}

.notification-content strong {
  display: block;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
}

.notification-content p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.notification-content button {
  background: linear-gradient(135deg, #e50914, #c20812);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
}

.notification-content button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.5);
}

/* ===================================
   PWA - SAFE AREA INSETS
   =================================== */

@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .bottom-nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
