/* ==========================================================================
   FalaApp - Portal Web & Servidor (PHP 8.1 + MySQL)
   Tema Azul Claro Oficial (Idêntico ao Aplicativo Mobile)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Paleta Azul Claro do FalaApp */
  --bg-main: #f0f9ff;          /* Sky 50 */
  --bg-gradient-end: #e0f2fe;  /* Sky 100 */
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --bg-header: #0284c7;        /* Sky 600 - Cor oficial do topo do App */
  --bg-header-dark: #0369a1;   /* Sky 700 */
  
  --primary: #0284c7;          /* Sky 600 */
  --primary-hover: #0369a1;    /* Sky 700 */
  --primary-light: #38bdf8;    /* Sky 400 */
  --primary-glow: rgba(2, 132, 199, 0.25);
  --primary-tint: #e0f2fe;     /* Sky 100 */
  --primary-tint-subtle: #f0f9ff;
  
  --secondary: #0ea5e9;        /* Sky 500 */
  --accent-cyan: #06b6d4;      /* Cyan 500 */
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --text-primary: #0f172a;     /* Slate 900 */
  --text-secondary: #334155;   /* Slate 700 */
  --text-muted: #64748b;       /* Slate 500 */
  --text-light: #ffffff;
  
  --border-light: #bae6fd;     /* Sky 200 - Borda padrão do App */
  --border-subtle: #e2e8f0;    /* Slate 200 */
  --border-focus: #0284c7;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 2px 4px rgba(2, 132, 199, 0.06);
  --shadow-card: 0 10px 25px -5px rgba(2, 132, 199, 0.12), 0 4px 6px -2px rgba(2, 132, 199, 0.05);
  --shadow-card-hover: 0 20px 35px -5px rgba(2, 132, 199, 0.2), 0 8px 10px -3px rgba(2, 132, 199, 0.08);
  --shadow-header: 0 4px 12px rgba(2, 132, 199, 0.25);
  --shadow-logo: 0 12px 30px rgba(2, 132, 199, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(186, 230, 253, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(224, 242, 254, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e0f2fe;
}
::-webkit-scrollbar-thumb {
  background: #7dd3fc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Container */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Barra Superior Azul (Exatamente como o topo do App FalaApp)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-header-dark) 100%);
  box-shadow: var(--shadow-header);
  padding: 12px 0;
  color: var(--text-light);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.brand:hover .brand-logo-wrap {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.72rem;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399; /* Verde online */
  box-shadow: 0 0 8px #34d399;
  animation: pulse-glow 2s infinite;
}

.pulse-dot.offline {
  background: #fca5a5;
  box-shadow: 0 0 8px #fca5a5;
  animation: none;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.btn-admin-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.btn-admin-nav:hover {
  background: #f0f9ff;
  color: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 50px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title .gradient-text {
  color: var(--primary);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--primary);
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #e0f2fe;
  border-color: var(--primary);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.security-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-item svg {
  color: var(--primary);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

section, .hero-card {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   Hero Download Card (Apresentação Visual com a Logo e QR Code)
   ========================================================================== */
.hero-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-align: center;
  scroll-margin-top: 90px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
}

.card-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.card-hero-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-logo);
  padding: 4px;
  border: 1px solid var(--border-light);
  animation: float-logo 3.5s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card-title-group {
  text-align: left;
}

.card-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.card-badge {
  display: inline-block;
  background: #e0f2fe;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  margin-top: 4px;
}

.qr-wrapper {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  height: 204px;
  margin: 0 auto 16px;
  border: 1.5px dashed var(--border-light);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transition: var(--transition);
  cursor: pointer;
}

.qr-wrapper:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
}

.qr-instruction {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.qr-instruction strong {
  color: var(--primary);
}

.apk-meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #f0f9ff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: left;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Live Diagnostics & Status Bar
   ========================================================================== */
.diagnostics-section {
  padding: 30px 0 50px;
}

.section-label {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.diag-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.diag-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary);
}

.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.diag-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: var(--primary);
}

.diag-status-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #e2e8f0;
  color: var(--text-muted);
}

.diag-status-pill.online {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.diag-status-pill.offline {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.diag-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.diag-value {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.diag-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-section {
  padding: 40px 0 70px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e0f2fe;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Installation Guide & Server Architecture
   ========================================================================== */
.install-section {
  padding: 30px 0 70px;
}

.install-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0f2fe;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.server-arch-box {
  background: #f0f9ff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.server-arch-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 8px;
}

.arch-list li code {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   Admin Modal (Painel Administrativo)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.25);
}

.modal-header {
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-header-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.btn-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 28px;
  background: #f0f9ff;
  border-bottom: 1px solid var(--border-light);
}

.modal-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-tab.active {
  background: var(--primary);
  color: #ffffff;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1.5px solid var(--border-light);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-light);
}

.user-info-name {
  font-weight: 700;
  color: var(--text-primary);
}

.user-info-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-status {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-status.active {
  background: #dcfce7;
  color: #15803d;
}

.badge-status.blocked {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-toggle-block {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: #f0f9ff;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-block:hover {
  background: #e0f2fe;
}

.btn-toggle-block.danger {
  border-color: #fecaca;
  background: #fee2e2;
  color: #b91c1c;
}

.btn-toggle-block.danger:hover {
  background: #fca5a5;
  color: #ffffff;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer {
  border-top: 1.5px solid var(--border-light);
  background: #ffffff;
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .install-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .lgpd-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Seção LGPD & Termos de Uso / Isenção de Responsabilidade
   ========================================================================== */
.lgpd-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.4) 0%, rgba(240, 249, 255, 0.9) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.lgpd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

.lgpd-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.lgpd-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-light);
}

.lgpd-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.lgpd-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lgpd-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.lgpd-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0284c7;
  margin-top: 4px;
}

.lgpd-tag.alert {
  background: #fef3c7;
  color: #b45309;
}

.lgpd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.lgpd-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lgpd-list svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.lgpd-list li.highlight {
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.lgpd-list li.warning-box {
  background: #fffbeb;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}

/* ==========================================================================
   Modal de Download com Notificação e Instruções
   ========================================================================== */
.download-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.download-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--border-light);
  text-align: center;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.download-modal-backdrop.active .download-modal-box {
  transform: scale(1) translateY(0);
}

.download-modal-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #dcfce7;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
  animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.download-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.download-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.download-badge-recorded {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.download-instructions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 22px;
}

.download-instructions h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-step-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.step-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.download-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Banner Flutuante de Cookies & LGPD
   ========================================================================== */
.lgpd-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.2), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  max-width: 820px;
  width: calc(100% - 36px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lgpd-cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.lgpd-banner-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.lgpd-banner-text strong {
  color: var(--text-primary);
}

.lgpd-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .lgpd-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    bottom: 16px;
    padding: 16px;
  }
  .lgpd-banner-actions {
    margin-top: 10px;
    justify-content: flex-end;
  }
}

