:root {
  color-scheme: dark;
  /* High-Contrast Pitch Black with Electric Neon Green & Vivid Purple */
  --bg-primary: #000000;
  --bg-secondary: #060608;
  --bg-card: rgba(12, 12, 15, 0.88);
  --bg-card-hover: rgba(22, 22, 28, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(118, 255, 3, 0.45);
  --border-purple: rgba(139, 92, 246, 0.45);
  
  --neon-green: #76ff03;
  --neon-green-glow: rgba(118, 255, 3, 0.5);
  --neon-green-dark: #65a30d;
  --purple-glow: rgba(139, 92, 246, 0.55);
  --purple-primary: #8b5cf6;
  --purple-dark: #6d28d9;
  
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-light: #f4f4f5;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.9), 0 0 15px rgba(118, 255, 3, 0.08);
  --shadow-neon: 0 0 25px rgba(118, 255, 3, 0.4);
  --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.35);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(139, 92, 246, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(118, 255, 3, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #000000 0%, #050507 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.glass-panel-neon {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(118, 255, 3, 0.15);
}

.glass-panel-purple {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(139, 92, 246, 0.2);
}

/* Custom Buttons */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #76ff03 0%, #84cc16 100%);
  color: #000000;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--neon-green-glow);
  transition: var(--transition);
  text-decoration: none;
}

.btn-neon:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(118, 255, 3, 0.7);
  color: #000000;
}

.btn-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: var(--shadow-purple);
  transition: var(--transition);
  text-decoration: none;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 15px rgba(118, 255, 3, 0.2);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: rgba(118, 255, 3, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(118, 255, 3, 0.4);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-trial {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Neon Text Glow */
.text-neon {
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--neon-green-glow);
}

.text-purple {
  color: #c084fc;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-neon);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(118, 255, 3, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #060608;
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(118, 255, 3, 0.2);
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--neon-green);
}

.modal-body {
  padding: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  color-scheme: dark;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0d101a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376ff03' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 42px;
  cursor: pointer;
}

select option, .form-select option, optgroup {
  background-color: #0f121d !important;
  color: #ffffff !important;
  padding: 12px 16px;
  font-size: 14px;
}

select option:hover, select option:focus, select option:checked,
.form-select option:hover, .form-select option:focus, .form-select option:checked {
  background-color: #27144a !important;
  color: #76ff03 !important;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(118, 255, 3, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-green);
}

/* =============================================================================
   PWA SMART INSTALL MODAL STYLES (COMPARTILHADO GLOBALMENTE)
   ============================================================================= */
.pwa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 3, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 16px env(safe-area-inset-bottom, 16px) 16px;
}

@media (min-width: 640px) {
  .pwa-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

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

.pwa-modal-card {
  width: 100%;
  max-width: 440px;
  background: #0d0e15;
  border: 1px solid rgba(118, 255, 3, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(118, 255, 3, 0.15);
  border-radius: 24px;
  padding: 24px 20px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-overlay.active .pwa-modal-card {
  transform: translateY(0);
}

.pwa-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pwa-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.pwa-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pwa-app-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #030306;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.pwa-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.pwa-brand-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.pwa-lead-desc {
  font-size: 13.5px;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 16px;
}

.pwa-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pwa-benefit-item {
  font-size: 12.5px;
  color: #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pwa-action {
  width: 100%;
  padding: 14px 20px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(118, 255, 3, 0.4);
}

.pwa-btn-dismiss {
  width: 100%;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 12.5px;
  margin-top: 10px;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.pwa-btn-dismiss:hover {
  color: #ffffff;
}

/* iOS Passo a Passo */
.ios-tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ios-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(118, 255, 3, 0.15);
  color: #76ff03;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 12.5px;
  color: #e5e7eb;
}

.ios-step-icon-box {
  width: 32px;
  height: 32px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-badge {
  background: rgba(118, 255, 3, 0.2);
  color: #76ff03;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

