/* Temas CSS: O Root padrÃ£o Ã© claro (Sol), data-theme="dark" aplica escuro (Lua) */
:root {
  --primary-color: #00aa55;
  /* WhatsApp/Agro Green - Light Mode */
  --primary-hover: #008844;
  --secondary-color: #f1f5f9;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-border: rgba(0, 0, 0, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --danger: #ef4444;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.05);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 4px 14px 0 rgba(0, 170, 85, 0.39);
}

[data-theme="dark"] {
  --primary-color: #00d26a;
  --secondary-color: #10b981;
  --bg-color: #171f2e;
  --surface-color: #1e293b;
  --surface-bg: rgba(30, 41, 59, 0.7);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --surface-border: #334155;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Background animated glow */
body::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: -20vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 106, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.1) translate(5%, 5%);
  }

  100% {
    transform: scale(1) translate(-2%, -2%);
  }
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Float Glass Navbar */
.glass-navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 0 1.5rem;
  border-radius: 50px;
  display: flex !important;
  justify-content: space-between;
  align-items: center !important;
  z-index: 10000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-mobile-left,
.nav-actions {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-mobile-left {
  justify-content: flex-start;
}

.nav-actions {
  justify-content: flex-end;
}

.nav-center-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.show-mobile-only {
  display: none;
}


.theme-toggle-nav {
  display: none;
  /* Escondido no Desktop */
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-right: 10px;
}

.menu-toggle {
  display: none;
  /* Escondido no Desktop */
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Floating WhatsApp Button - MOVIDO PARA A DIREITA */
.float-wpp {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  /* Ajuste para afastar da rolagem */
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 2000000000;
  /* Alto mas abaixo do VLibras (VLibras tem 2.1 bilhoes) */
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Para evitar conflito extremo com VLibras (que pode abrir no lado direito tb), deixamos WPP abaixo e adicionamos margin bottom no mobile */

.float-wpp:hover {
  transform: scale(1.1) translateY(-5px);
}

/* Landing Page Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 2rem;
  /* Adjusted for smaller screens too */
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  /* Para mobile quebrar linha */
}

.section-padding {
  padding: 3.5rem 1.5rem;
  /* Margens verticais reduzidas para compactar o site */
  max-width: 1200px;
  margin: 0 auto;
}

/* Plans (Pricing) */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.plan-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.popular {
  border-color: var(--primary-color);
  background: var(--surface-bg);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 210, 106, 0.15);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #000;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 210, 106, 0.3);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.plan-currency {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.plan-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.plan-features li i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

/* FAQ */
.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}


/* Core Layouts */
.auth-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-header-btn {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease-out forwards;
}

.auth-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Forms: LABEL ENCIMA DO INPUT, ÃCONE DENTRO DO WRAPPER */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
  /* Garante que o label fiqeu a esquerda */
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 4.5rem 1rem 1.2rem;
  /* EspaÃ§o para Ã­cone e botÃ£o de ver senha */
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 210, 106, 0.02);
  box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.1);
}

.input-wrapper .form-icon {
  position: absolute;
  right: 1.1rem;
  font-size: 1.3rem;
  color: var(--text-secondary);
  pointer-events: none;
  /* Deixa vocÃª clicar "atravÃ©s" do icone no input */
  transition: var(--transition);
}

.input-wrapper input:focus~.form-icon {
  color: var(--primary-color);
}

.pass-toggle {
  position: absolute;
  right: 2.8rem;
  background: none !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  color: var(--text-secondary);
  opacity: 0.5;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-toggle:hover {
  opacity: 1;
  color: var(--primary-color);
  transform: scale(1.1);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  gap: 0.5rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--glow);
}

[data-theme="dark"] .btn-primary {
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 106, 0.23);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(128, 128, 128, 0.05);
}

.btn-full {
  width: 100%;
}

.auth-switch {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-left: 0.5rem;
}

.auth-switch button:hover {
  text-decoration: underline;
}

/* Portal Layout */
.portal-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--surface-color);
  border-right: 1px solid var(--surface-border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
  cursor: pointer;
}

.sidebar-logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.nav-item i {
  font-size: 1.4rem;
  width: 24px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(128, 128, 128, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(0, 210, 106, 0.1);
  color: var(--primary-color);
  position: relative;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 4px;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.05);
  margin-bottom: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.user-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-info .role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.logout-btn {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 2rem 1.5rem;
  /* Menos estofamento lateral para expandir ate as bordas visualmente */
  max-width: 100%;
  margin: 0;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.page-header {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
}

/* Cards & Tables */
.card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  transition: var(--transition);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 700px;
  /* Para scrollar em telas pequenas */
}

.data-table th {
  text-align: left;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--surface-border);
}

.data-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.05);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-icon {
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid transparent;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.btn-icon:hover {
  background: rgba(128, 128, 128, 0.1);
  border-color: var(--surface-border);
  transform: translateY(-2px);
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: rgba(128, 128, 128, 0.1);
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* File Upload input */
input[type="file"]::file-selector-button {
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
  margin-right: 1rem;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.full-width {
  grid-column: 1 / -1;
}

/* API Fetch Block */
.api-block {
  background: rgba(0, 210, 106, 0.05);
  border: 1px solid rgba(0, 210, 106, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  /* para mobile */
}

/* Responsividade Aprimorada */
@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .glass-navbar {
    width: 95%;
    border-radius: 20px;
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-links {
    display: none;
    /* Esconde links no mobile simplificando a navbar apenas p/ actions */
  }

  .nav-actions {
    width: 100%;
    justify-content: space-around;
  }

  .hero-section {
    padding-top: 10rem;
    /* Give room for stacked navbar */
  }

  .auth-header-btn {
    max-width: 100%;
  }

  .portal-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--surface-border);
    padding: 1.5rem;
  }

  .nav-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem 0.2rem;
    margin-bottom: 1.5rem;
    gap: 0.8rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    white-space: nowrap;
    background: var(--secondary-color);
    background: color-mix(in srgb, var(--surface-color), transparent 50%);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid var(--surface-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-item.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 210, 106, 0.3);
  }

  .nav-item.active i {
    color: #fff !important;
  }

  .nav-item.active::before {
    display: none;
    /* Remove a linha antiga no mobile para usar estilo chip */
  }

  .main-content {
    padding: 1.5rem;
  }

  .float-wpp {
    bottom: 2rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* --- CURSORES FUTURISTAS ESTILIZADOS --- */


/* Grid Imersivo Base (PadrÃ£o) */
.interactive-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(var(--primary-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.08;
  z-index: -1;
}

/* BotÃµes Circulares / Upload */
.theme-toggle-fixed {
  position: fixed;
  top: 1.5rem;
  right: 0.5rem;
  /* Oculta ou alinha graciosamente em ultra widescreen, mas o calc garante pelo menos 2rem! Wait, a navbar tem width de max 1200. Ou seja 50vw - 600px. PorÃ©m, no navbar eu botei 50vw - 600px, e com a barra fixa fica fora dele */
  /* Vamos simplificar para right: 2rem no css, mas em widescreen fica deslocado do nav que fica centralizado. O certo Ã© usar calc e clamp. A navbar tem width/max-width. */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 10000;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

/* Removida regra que centralizava demais o botÃ£o em telas largas */

.theme-toggle-fixed:hover {
  transform: scale(1.1);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.drop-zone {
  border: 2px dashed var(--surface-border);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  background: rgba(128, 128, 128, 0.02);
  width: 100%;
}

.drop-zone.drag-active,
.drop-zone:hover {
  border-color: var(--primary-color);
  background: rgba(0, 210, 106, 0.08);
}

.drop-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  cursor: text !important;
}

/* Estilo Inputs de Pesquisa / Multiuso */
.filter-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  color-scheme: dark light;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 210, 106, 0.02);
  box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.1);
}

select.filter-input {
  appearance: auto;
  cursor: pointer;
}

select.filter-input option {
  background-color: #1e293b;
  color: #f8fafc;
}

:root select.filter-input option {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] select.filter-input option {
  background-color: #1e293b;
  /* Fundo do Dark Theme garantido */
  color: #f8fafc;
}

/* Tooltip Customizado CSS */
.custom-tooltip {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.custom-tooltip .tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--surface-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--primary-color);
  color: var(--text-primary);
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.custom-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Estilos para Mobile Geral */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .theme-toggle-nav,
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .glass-navbar {
    width: 95% !important;
    top: 1rem !important;
    height: 60px !important;
    padding: 0 1rem !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .nav-mobile-left,
  .nav-actions {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-mobile-left {
    justify-content: flex-start !important;
  }

  .nav-actions {
    justify-content: flex-end !important;
  }

  .nav-center-area {
    flex: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .show-mobile-only {
    display: block;
  }


  .nav-links {
    position: fixed;
    top: -100%;
    /* InvisÃ­vel e acima antes de abrir */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 95%;
    height: auto;
    max-height: 85vh;
    background: var(--surface-color);
    /* Usando cor sÃ³lida de superfÃ­cie */
    background: color-mix(in srgb, var(--surface-color), transparent 5%);
    /* Quase opaco */
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    z-index: 9999;
    list-style: none;
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
  }

  .nav-links.open {
    top: calc(1rem + 70px);
    /* Logo abaixo da aba flutuante */
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0);
  }

  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
  }
}

@media (min-width: 769px) {
  .mobile-menu-actions {
    display: none;
    /* Escondido no Desktop */
  }
}

/* Dots do Carrossel */
.carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
  height: 20px;
  /* Altura fixa para evitar trepidaÃ§Ã£o */
}

@media (max-width: 768px) {
  .carousel-dots {
    display: flex;
  }
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: var(--text-secondary);
  opacity: 0.25;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    background-color 0.4s ease;
  flex-shrink: 0;
  /* Impede que as bolinhas se espremam */
}

.dot.active {
  width: 28px;
  background: var(--primary-color);
  opacity: 1;
}

/* Responsividade: Carrossel Snap Apenas nos Planos */
@media (max-width: 768px) {
  #pricing .plans-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 2rem 0;
    margin: 0 -1rem;
    scrollbar-width: none;
  }

  #pricing .plans-grid::-webkit-scrollbar {
    display: none;
  }

  #pricing .plans-grid>.plan-card {
    flex: 0 0 82vw !important;
    scroll-snap-align: center;
    max-width: none;
    margin: 0;
  }

  #pricing .plans-grid::before,
  #pricing .plans-grid::after {
    content: '';
    flex: 0 0 9vw;
    flex-shrink: 0;
  }
}

/* Checkboxes Customizados */
input[type="checkbox"] {
  appearance: none;
  background-color: transparent;
  color: var(--primary-color);
  width: 18px !important;
  height: 18px !important;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

input[type="checkbox"]::after {
  content: "âœ”";
  position: absolute;
  color: var(--bg-color);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

.logout-btn {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.premium-logout {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .logout-btn {
    padding: 1rem;
    font-size: 1rem;
    background: var(--surface-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

/* Notificações Customizadas (Toasts) */
.notification-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-color);
  border: 1px solid var(--primary-color);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
  font-weight: 500;
  white-space: nowrap;
}

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

.notification-toast.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.notification-toast.error i {
  color: #ef4444;
}

.notification-toast.success {
  border-color: var(--primary-color);
  background: rgba(0, 210, 106, 0.1);
}

.notification-toast.success i {
  color: var(--primary-color);
}

.notification-toast i {
  font-size: 1.4rem;
}
/* --- REVEAL ANIMATIONS ON SCROLL --- */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
  opacity: 1;
}

.reveal-fade-up {
  transform: translateY(40px);
}
.reveal-fade-up.active {
  transform: translateY(0);
}

.reveal-fade-in {
  transform: scale(0.95);
}
.reveal-fade-in.active {
  transform: scale(1);
}

.reveal-fade-left {
  transform: translateX(-40px);
}
.reveal-fade-left.active {
  transform: translateX(0);
}

.reveal-fade-right {
  transform: translateX(40px);
}
.reveal-fade-right.active {
  transform: translateX(0);
}
