/* Classic App Styles */
.classic-app-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 0;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a1f3a 0%, #2d1b3d 25%, #0f3a2a 75%, #0a2a1f 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  z-index: -2;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
              radial-gradient(circle at bottom left, rgba(5, 150, 105, 0.05) 0%, transparent 50%);
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.premium-header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.logo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  color: #ffffff;
}

.main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.main-title strong {
  font-weight: 700;
}

.subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.glass-card {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-icon {
  font-size: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider-item {
  margin-bottom: 28px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slider-label {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-value-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider-wrapper {
  position: relative;
  padding: 8px 0;
}

.modern-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modern-slider:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modern-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.6);
  border: 2px solid #ffffff;
}

.modern-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.8);
}

.modern-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.6);
}

.slider-hint {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-style: italic;
}

.total-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.total-label {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 600;
}

.total-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #60a5fa;
  text-shadow: 0 2px 8px rgba(96, 165, 250, 0.5);
}

.component-explanation {
  background: rgba(224, 231, 255, 0.1);
  border: 1px solid rgba(165, 180, 252, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.info-box {
  background: rgba(248, 250, 252, 0.1);
  border-left: 4px solid #3b82f6;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.percentage-suggestion {
  font-size: 0.8125rem;
  color: #10b981;
  font-style: italic;
  margin-top: 4px;
}

.calculation-note {
  background: rgba(254, 243, 199, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.grant-info-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: center;
}

.grant-info-text {
  font-size: 1rem;
  color: #10b981;
  font-weight: 600;
}

.non-eligible-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px dashed rgba(239, 68, 68, 0.3);
}

.non-eligible-header {
  background: rgba(254, 242, 242, 0.1);
  border: 1px solid rgba(254, 202, 202, 0.3);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
  color: #fca5a5;
  font-size: 1.125rem;
  font-weight: 600;
}

.enhancement-section {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.enhancement-section h3 {
  margin: 0 0 24px 0;
  color: #f1f5f9;
  font-size: 1.25rem;
  font-weight: 600;
}

.cost-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.cost-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.cost-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cost-value {
  font-weight: 600;
  color: #10b981;
  font-size: 1.125rem;
}

.cost-total {
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  margin-top: 20px;
}

.cost-total strong {
  color: #f1f5f9;
}

.cost-total span {
  font-weight: 700;
  color: #ef4444;
  font-size: 1.5rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  position: relative;
  margin: 20px auto;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 48px;
  max-width: 600px;
  width: 100%;
  animation: slideUp 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.preview-stats {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-select {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.form-select option {
  background: #1e293b;
  color: white;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.whatsapp-button {
  width: 100%;
  background: #25D366;
  color: white;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 12px;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  background: #1fb855;
}

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 24px;
  line-height: 1.5;
}

.success-toast {
  position: fixed;
  top: 32px;
  right: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 20px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  display: none;
  animation: slideInRight 0.3s ease;
  z-index: 2000;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: rotate(90deg);
}

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

.report-cta-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin-top: 60px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.report-cta-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.report-cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.cta-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: inline-block;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 60px;
  padding: 40px 20px;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .main-container {
    padding: 10px;
  }
  
  .premium-header {
    padding: 40px 20px 30px;
  }
  
  .glass-card {
    padding: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 32px 24px;
    margin: 10px auto;
  }
}
