:root {
  --primary: #0f0820;
  --secondary: #1a0a2e;
  --accent: #5D0F56;
  --accent-light: #8B1A83;
  --accent-dark: #400730;
  --gradient-1: #150a28;
  --gradient-2: #2d1048;
  --gradient-3: #400730;
  --black: #000000;
  --white: #f8fafc;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
}

/* LIGHT MODE */
body.light-mode {
  --primary: #f8fafc;
  --secondary: #f1f5f9;
  --gradient-1: #ffffff;
  --gradient-2: #f8f0fc;
  --gradient-3: #fce7fc;
  --white: #1a1a2e;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
}

body.light-mode .orb {
  opacity: 0.3;
}

body.light-mode .card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(93, 15, 86, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

body.light-mode .section-block,
body.light-mode .dashboard-section {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(93, 15, 86, 0.12);
}

body.light-mode input,
body.light-mode select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(93, 15, 86, 0.2);
  color: #1a1a2e;
}

body.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(93, 15, 86, 0.15);
}

body.light-mode .addon-card {
  background: rgba(255, 255, 255, 0.8);
}

body.light-mode .comparison-table thead {
  background: linear-gradient(135deg, rgba(93, 15, 86, 0.15), rgba(139, 26, 131, 0.1));
}

body.light-mode .comparison-table tbody tr:hover {
  background: rgba(93, 15, 86, 0.05);
}

body.light-mode .profit-breakdown {
  background: rgba(255, 255, 255, 0.8);
}

body.light-mode .platform-benefits-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 231, 252, 0.9));
}

body.light-mode .benefit-card {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .platform-summary {
  background: linear-gradient(135deg, rgba(252, 231, 252, 0.5), rgba(209, 250, 229, 0.3));
}

body.light-mode .savings-item {
  background: rgba(255, 255, 255, 0.8);
}

body.light-mode .modal-sidebar {
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode .modal-header {
  background: rgba(255, 255, 255, 0.95);
}

/* Light mode text elements */
body.light-mode label,
body.light-mode .form-group label,
body.light-mode .section-title,
body.light-mode .card-title,
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4,
body.light-mode .stat-label,
body.light-mode .stat-value,
body.light-mode .proj-stat-label,
body.light-mode .proj-stat-value,
body.light-mode .breakdown-label,
body.light-mode .breakdown-value,
body.light-mode .benefit-title,
body.light-mode .benefit-description,
body.light-mode .savings-label,
body.light-mode .savings-value,
body.light-mode .comparison-table th,
body.light-mode .comparison-table td,
body.light-mode .total-row td,
body.light-mode .radio-group label,
body.light-mode .addon-title,
body.light-mode .addon-price,
body.light-mode .modal-title,
body.light-mode .modal-body,
body.light-mode p,
body.light-mode span:not(.stat-icon):not(.benefit-icon) {
  color: #1a1a2e;
}

body.light-mode .field-description,
body.light-mode .helper-text,
body.light-mode small,
body.light-mode .text-muted,
body.light-mode .info-text,
body.light-mode .stat-subtext,
body.light-mode .note {
  color: #4a5568;
}

body.light-mode input::placeholder,
body.light-mode select::placeholder {
  color: #718096;
}

body.light-mode .grid-overlay {
  opacity: 0.03;
}

/* Keep these elements with light text in both modes */
body.light-mode .analyze-btn,
body.light-mode .checkboxes-inline label,
body.light-mode .print-btn,
body.light-mode .regenerate-btn,
body.light-mode .explain-btn-dashboard,
body.light-mode .pill-option input[type="checkbox"]:checked + .pill {
  color: #f8fafc;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(93, 15, 86, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(93, 15, 86, 0.5);
}

body.light-mode .theme-toggle {
  background: linear-gradient(135deg, #1a1a2e, #2d1048);
}

@media (max-width: 480px) {
  .theme-toggle {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media print {
  .theme-toggle {
    display: none !important;
  }
}

/* LOGO HEADER */
.site-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo-icon {

  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(93, 15, 86, 0.4);

}

.logo-icon img {
  max-width: 180px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .site-header {
    padding: 15px 10px;
    margin-bottom: 10px;
  }
  
  .logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  
  .logo-icon i {
    font-size: 20px;
  }
  
  .logo-brand {
    font-size: 1.5rem;
  }
  
  .logo-tagline {
    font-size: 0.7rem;
  }
}

/* DASHBOARD ACTIONS */
.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.print-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(93, 15, 86, 0.3);
}

.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 15, 86, 0.4);
}

.print-btn i {
  font-size: 16px;
}

@media (max-width: 600px) {
  .dashboard-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .dashboard-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* PDF PRINT STYLES */
@media print {
  /* Hide non-essential elements */
  .orb, .grid-overlay, .site-header, .print-btn, .explain-btn-dashboard, 
  .regenerate-btn, .dashboard-actions, .modal, #calculationModal,
  section.card:first-of-type {
    display: none !important;
  }
  
  /* Show only dashboard */
  #dashboard {
    display: block !important;
  }
  
  /* Reset backgrounds for print */
  body {
    background: white !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .card, #dashboard {
    box-shadow: none !important;
    border: none !important;
    background: white !important;
    padding: 20px !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  /* Print header styling */
  #print-header {
    display: block !important;
    text-align: center;
    padding: 20px 0 30px;
    margin-bottom: 20px;
    border-bottom: 3px solid #5D0F56;
  }
  
  .print-header-content h1 {
    color: #5D0F56 !important;
    font-size: 28px !important;
    margin: 0 0 10px !important;
  }
  
  .print-header-content p {
    color: #666 !important;
    margin: 5px 0 !important;
    font-size: 14px !important;
  }
  
  /* Dashboard sections */
  .dashboard-section {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    margin: 15px 0 !important;
    padding: 20px !important;
    page-break-inside: avoid;
  }
  
  .dashboard-section h3 {
    color: #5D0F56 !important;
    border-bottom: 2px solid #5D0F56;
    padding-bottom: 10px;
  }
  
  /* Stat cards */
  .stat-card {
    background: white !important;
    border: 1px solid #ddd !important;
  }
  
  .stat-value {
    color: #5D0F56 !important;
  }
  
  .stat-label {
    color: #666 !important;
  }
  
  /* Comparison table */
  .comparison-table {
    border-collapse: collapse !important;
  }
  
  .comparison-table th {
    background: #5D0F56 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .comparison-table td {
    border: 1px solid #ddd !important;
    color: #333 !important;
  }
  
  .comparison-table tbody tr:hover {
    background: transparent !important;
  }
  
  .value-highlight.green {
    background: #d4edda !important;
    color: #155724 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .value-highlight.red {
    background: #f8d7da !important;
    color: #721c24 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Badges */
  .badge, .savings-badge {
    background: #5D0F56 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Profit section */
  .profit-breakdown {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
  }
  
  .breakdown-row {
    border-bottom: 1px solid #eee !important;
  }
  
  .breakdown-row.total {
    border-top: 2px solid #5D0F56 !important;
    background: #f0e6f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Charts - ensure they print */
  .chart-container {
    display: block !important;
    height: auto !important;
    min-height: 250px;
    page-break-inside: avoid;
  }
  
  canvas {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Platform summary */
  .platform-summary, .savings-item {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
  }
  
  .savings-value {
    color: #5D0F56 !important;
  }
  
  /* Hide dashboard header except title */
  .dashboard-header {
    display: none !important;
  }
  
  /* Page breaks */
  .highlight-section, .profit-section, .platform-benefits-section {
    page-break-before: auto;
    page-break-inside: avoid;
  }
}

/* Hide print header when not printing */
#print-header {
  display: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--primary);
  color: var(--white);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  min-height: 100vh;
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #0a0f1a 0%,
    #0c1929 25%,
    #111827 50%,
    #0f172a 75%,
    #0a0f1a 100%
  );
  z-index: -3;
}

/* Animated mesh gradient background */
body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(
      ellipse 80% 50% at 20% 40%,
      rgba(93, 15, 86, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(64, 7, 48, 0.18) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 60% at 70% 80%,
      rgba(139, 26, 131, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 40% 30% at 10% 70%,
      rgba(93, 15, 86, 0.12) 0%,
      transparent 50%
    );
  animation: meshFloat 25s ease-in-out infinite;
  z-index: -2;
  filter: blur(60px);
  will-change: transform;
}

/* Floating orbs animation */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(93, 15, 86, 0.25) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(64, 7, 48, 0.2) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 26, 131, 0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 30s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 40px) scale(1.1); }
  50% { transform: translate(-60px, 20px) scale(0.95); }
  75% { transform: translate(-20px, 60px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.08); }
  66% { transform: translate(20px, -50px) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(-45%, -55%) scale(1.15); }
  50% { transform: translate(-55%, -45%) scale(0.9); }
  75% { transform: translate(-48%, -52%) scale(1.1); }
}

@keyframes meshFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(30px, -20px, 0) rotate(2deg); }
  50% { transform: translate3d(-20px, 30px, 0) rotate(-1deg); }
  75% { transform: translate3d(25px, -35px, 0) rotate(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* Grid lines overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(93, 15, 86, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 15, 86, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.card {
  background: rgba(15, 8, 32, 0.85);
  margin: 20px auto;
  padding: 40px;
  max-width: 1200px;
  border-radius: 24px;
  border: 1px solid rgba(93, 15, 86, 0.25);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 
    0 0 0 1px rgba(93, 15, 86, 0.1),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(93, 15, 86, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  will-change: transform;
}

@media (max-width: 1024px) {
  .card {
    padding: 30px;
    margin: 15px auto;
  }
}

@media (max-width: 768px) {
  .card {
    padding: 25px;
    margin: 10px auto;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 20px;
    margin: 5px auto;
    border-radius: 16px;
  }
}



.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--white), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-top: -5px;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.required {
  color: #f87171;
  font-weight: bold;
}

/* SECTION BLOCKS */
.section-block {
  background: rgba(15, 8, 32, 0.6);
  padding: 25px;
  margin: 25px 0;
  border-radius: 12px;
  border: 1px solid rgba(93, 15, 86, 0.2);
  border-left: 3px solid var(--accent);
}

.section-block.primary-section {
  background: linear-gradient(
    135deg,
    rgba(93, 15, 86, 0.15),
    rgba(15, 8, 32, 0.7)
  );
  border-left-color: var(--accent-light);
}

.section-block h3 {
  margin-top: 0;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* FORM GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 15px;
}

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

@media (max-width: 900px) {
  .grid-3col {
    grid-template-columns: 1fr;
  }
}

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

.help-text {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
  font-style: italic;
}

label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  display: block;
  margin-bottom: 8px;
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(93, 15, 86, 0.3);
  background: rgba(15, 8, 32, 0.7);
  color: var(--white);
  font-size: 15px;
  transition: all 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 8, 32, 0.9);
  box-shadow: 0 0 0 3px rgba(93, 15, 86, 0.25);
}

/* Select option groups */
select optgroup {
  background: #1a1535;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 0;
}

select option {
  background: #0f0820;
  color: var(--white);
  padding: 8px 12px;
}

/* Info icon in labels */
label .fa-info-circle {
  color: var(--accent-light);
  opacity: 0.7;
  font-size: 0.85rem;
  margin-left: 4px;
  cursor: help;
  transition: opacity 0.2s;
}

label .fa-info-circle:hover {
  opacity: 1;
}

/* Help text with icon */
.help-text i {
  margin-right: 4px;
  opacity: 0.8;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* CATEGORY PILLS */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.pill-option {
  cursor: pointer;
  margin-bottom: 0;
}

.pill-option input[type="checkbox"] {
  display: none;
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.pill-option input[type="checkbox"]:checked + .pill {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: none;
}

.pill:hover {
  background: rgba(93, 15, 86, 0.25);
  border-color: var(--accent);
}

/* CHECKBOXES AND RADIOS */
.checkboxes-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.checkboxes-inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 15px;
}

.checkboxes-inline input[type="checkbox"],
.radio-group input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 0;
}

/* ADD-ON SECTION */
.addon-section {
  background: linear-gradient(
    135deg,
    rgba(93, 15, 86, 0.12),
    rgba(15, 8, 32, 0.7)
  );
  border: 1px solid rgba(93, 15, 86, 0.25);
  border-left: 3px solid var(--accent);
  padding: 35px;
}

.addon-header {
  text-align: center;
  margin-bottom: 30px;
}

.addon-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.addon-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

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

@media (max-width: 1200px) {
  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .addon-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.addon-card {
  background: rgba(15, 8, 32, 0.7);
  padding: 25px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(93, 15, 86, 0.25);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .addon-card {
    padding: 20px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .addon-card {
    padding: 16px;
    gap: 10px;
  }
}

.addon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.addon-card:hover::before {
  opacity: 0.15;
}

.addon-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(93, 15, 86, 0.3);
}

.addon-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 1;
}

.addon-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--success);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
}

.addon-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.addon-icon {
  font-size: 32px;
}

@media (max-width: 768px) {
  .addon-icon {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .addon-icon {
    font-size: 24px;
  }
}

.addon-title {
  font-weight: 700;
  font-size: 18px;
}

.addon-desc {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.4;
}

.info-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 10px 0;
}

/* BUTTON */
.analyze-btn {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  margin-top: 35px;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.analyze-btn:active {
  transform: translateY(-1px);
}

.explain-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 24px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  margin-top: 15px;
  width: 100%;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.explain-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.explain-icon {
  font-size: 20px;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-sidebar {
  position: relative;
  width: 600px;
  max-width: 90vw;
  height: 100%;
  background: rgba(15, 8, 32, 0.98);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-left: 1px solid rgba(93, 15, 86, 0.3);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  overflow-y: auto;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.modal-header {
  position: sticky;
  top: 0;
  background: rgba(15, 8, 32, 0.95);
  backdrop-filter: blur(20px);
  padding: 25px 30px;
  border-bottom: 1px solid rgba(93, 15, 86, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header h2 i {
  color: var(--accent-light);
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-content {
  padding: 30px;
}

.calc-section {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.calc-section.important {
  background: rgba(16, 185, 129, 0.12);
  border-left-color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.calc-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-section h3 i {
  color: var(--accent-light);
  font-size: 1.2rem;
}

.calc-section p {
  margin: 12px 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
}

.calc-section ul {
  margin: 15px 0;
  padding-left: 25px;
}

.calc-section li {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
}

.calc-section li i {
  color: var(--success);
  margin-right: 8px;
}

.formula-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 22px;
  border-radius: 12px;
  margin: 18px 0;
  border: 1px solid rgba(93, 15, 86, 0.4);
  backdrop-filter: blur(5px);
}

.formula-box strong {
  color: var(--white);
  font-size: 15px;
  display: block;
  margin-bottom: 12px;
}

.formula-box code {
  color: #a8e6cf;
  font-size: 14px;
  line-height: 1.8;
  font-family: "Monaco", "Courier New", monospace;
  display: block;
  white-space: pre-line;
}

.example {
  background: rgba(93, 15, 86, 0.2);
  padding: 18px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-light);
  margin: 18px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  backdrop-filter: blur(5px);
}

.impact-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
  border-left: 4px solid var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.impact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(6px);
  box-shadow: 0 6px 16px rgba(93, 15, 86, 0.4);
}

.impact-item strong {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

.impact-item strong i {
  color: var(--accent-light);
  font-size: 1.1rem;
}

.impact-item ul {
  margin: 12px 0;
  padding-left: 20px;
}

.impact-item li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.addon-calc {
  margin: 20px 0;
}

.addon-calc-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin: 15px 0;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.addon-calc-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(93, 15, 86, 0.4);
}

.addon-calc-icon {
  font-size: 28px;
  flex-shrink: 0;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(93, 15, 86, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.addon-calc-item:hover .addon-calc-icon {
  background: rgba(93, 15, 86, 0.5);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(93, 15, 86, 0.4);
}

.addon-calc-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.addon-calc-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.note {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.note i {
  color: var(--warning);
  margin-right: 8px;
}

.source {
  background: rgba(59, 130, 246, 0.1);
  padding: 12px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 13px;
  border-left: 3px solid var(--info);
}

.source i {
  color: var(--info);
  margin-right: 6px;
}

.source a {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px dotted #60a5fa;
  transition: all 0.3s;
}

.source a:hover {
  color: #93c5fd;
  border-bottom-style: solid;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.sources-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sources-list li i {
  color: var(--info);
  margin-right: 8px;
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list a {
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s;
}

.sources-list a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* DASHBOARD SECTIONS */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 2rem;
  flex: 1;
  text-align: center;
}

.regenerate-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.regenerate-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-light);
  transform: translateX(-3px);
}

.explain-btn-dashboard {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(93, 15, 86, 0.4);
}

.explain-btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 15, 86, 0.5);
}

.dashboard-section {
  background: rgba(15, 8, 32, 0.7);
  padding: 30px;
  margin: 30px 0;
  border-radius: 16px;
  border: 1px solid rgba(93, 15, 86, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.dashboard-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(93, 15, 86, 0.15);
}

.dashboard-section h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-section h3 i {
  color: var(--accent-light);
  font-size: 1.3rem;
}

.section-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.highlight-section {
  background: linear-gradient(
    135deg,
    rgba(93, 15, 86, 0.15),
    rgba(64, 7, 48, 0.1)
  );
  border: 2px solid rgba(93, 15, 86, 0.35);
}

.profit-section {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(5, 150, 105, 0.05)
  );
  border: 2px solid rgba(16, 185, 129, 0.2);
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.stat-card {
  background: rgba(15, 8, 32, 0.6);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(93, 15, 86, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-card.accent {
  background: rgba(93, 15, 86, 0.15);
  border: 1px solid rgba(93, 15, 86, 0.35);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(93, 15, 86, 0.25);
}

.stat-label {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

/* BOTTLENECKS */
.bottleneck-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.bottleneck-box.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.bottleneck-box ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.bottleneck-box li {
  margin: 5px 0;
}

/* IMPACT BADGES */
.impact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.badge {
  background: rgba(93, 15, 86, 0.4);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(93, 15, 86, 0.6);
}

/* COMPARISON CHART */
.comparison-chart {
  margin: 30px 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 10px;
}

.chart-header h4 {
  margin: 0 0 20px 0;
}

.chart-container {
  position: relative;
  height: 300px;
  margin: 20px 0;
  contain: layout style paint;
  will-change: auto;
}

.chart-container canvas {
  max-height: 100%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ACTIVE ADD-ONS */
.active-addons {
  margin: 25px 0;
}

.addon-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.addon-impact-card {
  background: rgba(93, 15, 86, 0.2);
  border: 1px solid rgba(93, 15, 86, 0.35);
  padding: 20px;
  border-radius: 10px;
}

.addon-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.addon-impact {
  color: var(--success);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
}

.addon-desc {
  font-size: 13px;
  opacity: 0.7;
}

/* PROJECTION TABLE */
.projection-chart-container {
  margin: 30px 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 10px;
}

.projection-chart-container h4 {
  margin: 0 0 20px 0;
  font-size: 1.3rem;
}

.projection-stats {
  margin-top: 25px;
}

.projection-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.proj-stat-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
}

.proj-stat-card.highlight {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.proj-stat-card:hover {
  transform: translateY(-3px);
}

.proj-stat-label {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proj-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.proj-stat-card.highlight .proj-stat-value {
  color: var(--success);
  font-size: 28px;
}

/* PROFIT BREAKDOWN */
.profit-breakdown {
  background: rgba(0, 0, 0, 0.2);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row.subtract .breakdown-value {
  color: rgba(239, 68, 68, 0.8);
}

.breakdown-row.gross-profit {
  background: rgba(93, 15, 86, 0.15);
  margin: 8px -15px;
  padding: 12px 15px;
  border-radius: 6px;
  border-bottom: none;
}

.breakdown-row.gross-profit .breakdown-value {
  color: var(--accent-light);
  font-weight: 700;
}

.breakdown-row.total {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
}

.breakdown-row.total .breakdown-value {
  color: var(--success);
  font-size: 1.3rem;
}

.breakdown-label {
  flex: 1;
}

.breakdown-value {
  font-weight: 700;
  min-width: 180px;
  text-align: right;
}

.profit-highlight {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 20px;
  border-radius: 10px;
}

.profit-highlight p {
  margin: 0;
}

/* UTILITY */
.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .dashboard-section {
    padding: 25px;
    margin: 20px 0;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .dashboard-header h2 {
    font-size: 1.4rem;
    order: 1;
    text-align: center;
  }

  .regenerate-btn {
    order: 2;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  .explain-btn-dashboard {
    order: 3;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  .dashboard-section {
    padding: 20px;
    margin: 15px 0;
  }

  .dashboard-section h3 {
    font-size: 1.3rem;
  }

  .modal-sidebar {
    width: 90vw;
    max-width: 600px;
    right: 5vw;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-content {
    padding: 20px;
  }

  .calc-section {
    padding: 18px;
    margin-bottom: 18px;
  }

  .calc-section h3 {
    font-size: 1.2rem;
  }

  .calc-section p,
  .calc-section li {
    font-size: 14px;
  }

  .impact-item {
    padding: 16px;
  }

  .addon-calc-item {
    gap: 12px;
    padding: 14px;
  }

  .addon-calc-icon {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .grid,
  .grid-2col {
    grid-template-columns: 1fr;
  }

  .checkboxes-inline {
    flex-direction: column;
    gap: 10px;
  }

  .category-pills {
    gap: 8px;
  }

  .pill {
    padding: 8px 14px;
    font-size: 13px;
  }

  .chart-container {
    height: 250px;
  }

  .stat-value {
    font-size: 22px;
  }

  .breakdown-row {
    flex-direction: column;
    gap: 5px;
  }

  .breakdown-value {
    text-align: left;
    min-width: auto;
  }

  .projection-stat-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-header h2 {
    font-size: 1.2rem;
  }

  .dashboard-section {
    padding: 16px;
    margin: 12px 0;
  }

  .dashboard-section h3 {
    font-size: 1.1rem;
  }

  .modal-sidebar {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }

  .modal-content {
    padding: 16px;
  }

  .calc-section {
    padding: 14px;
    margin-bottom: 14px;
  }

  .calc-section h3 {
    font-size: 1rem;
    gap: 8px;
  }

  .calc-section h3 i {
    font-size: 0.9rem;
  }

  .calc-section p,
  .calc-section li {
    font-size: 13px;
  }

  .formula-box {
    padding: 14px;
    margin: 12px 0;
  }

  .formula-box code {
    font-size: 11px;
  }

  .example {
    padding: 12px;
    font-size: 12px;
  }

  .impact-item {
    padding: 12px;
    margin: 8px 0;
  }

  .addon-calc-item {
    gap: 10px;
    padding: 12px;
    margin: 8px 0;
  }

  .addon-calc-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .sources-list li {
    padding: 8px 0;
    font-size: 12px;
  }

  .source {
    font-size: 11px;
    padding: 10px;
  }

  .note {
    font-size: 12px;
    padding: 12px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 20px;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }
}

/* Platform Benefits Section */
.platform-benefits-section {
  background: linear-gradient(135deg, rgba(15, 8, 32, 0.8), rgba(26, 10, 46, 0.9));
  border: 1px solid rgba(93, 15, 86, 0.25);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 2rem;
  backdrop-filter: blur(30px) saturate(200%);
}

.platform-benefits-section h2 {
  margin-bottom: 1rem;
}

.platform-benefits-section .subtitle {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.benefits-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.benefit-card {
  background: rgba(15, 8, 32, 0.6);
  border: 1px solid rgba(93, 15, 86, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 15, 86, 0.4);
  box-shadow: 0 4px 20px rgba(93, 15, 86, 0.25);
}

.benefit-card i {
  font-size: 2rem;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  display: block;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(93, 15, 86, 0.2);
}

.stat-zenska, .stat-generic {
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

.stat-zenska {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-generic {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-zenska .stat-value {
  color: #10b981;
}

.stat-generic .stat-value {
  color: #ef4444;
}

.benefit-description {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
  color: var(--text-secondary);
}

/* Platform Summary */
.platform-summary {
  background: linear-gradient(135deg, rgba(93, 15, 86, 0.15), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(93, 15, 86, 0.25);
  border-radius: 12px;
  padding: 2rem;
}

.platform-summary h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.savings-grid {
  display: grid;
  gap: 1rem;
}

.savings-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 8, 32, 0.6);
  border: 1px solid rgba(93, 15, 86, 0.2);
  border-radius: 8px;
}

#revenueIncrease{
    color: var(--success);
}

.savings-item.savings-total {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
  border-color: rgba(16, 185, 129, 0.3);
  margin-top: 0.5rem;
}

.savings-label {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.savings-value {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-light);
  text-align: right;
  display: flex;
  align-items: center;
}

.savings-value.total {
  color: #10b981;
  font-size: 1.6rem;
}

.savings-detail {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.8rem;
  opacity: 0.7;
  color: var(--text-secondary);
}

/* Responsive adjustments for platform benefits */
@media (max-width: 1024px) {
  .benefits-comparison {
    grid-template-columns: 1fr;
  }
  
  .platform-benefits-section {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .benefit-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .savings-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
  }
  
  .savings-label {
    grid-column: 1;
    grid-row: 1;
  }
  
  .savings-value {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    justify-content: center;
  }
  
  .savings-detail {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .platform-benefits-section {
    padding: 1.5rem;
  }
  
  .benefit-card {
    padding: 1.25rem;
  }
  
  .platform-summary {
    padding: 1.5rem;
  }
}

/* Comparison Table Styles */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(93, 15, 86, 0.25);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(93, 15, 86, 0.2), rgba(64, 7, 48, 0.15));
}

.comparison-table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  border-bottom: 2px solid rgba(93, 15, 86, 0.3);
}

.comparison-table th i {
  margin-right: 0.5rem;
  opacity: 0.8;
}

.comparison-table th.feature-col {
  width: 25%;
}

.comparison-table th.zenska-col {
  width: 22%;
  color: #10b981;
}

.comparison-table th.generic-col {
  width: 22%;
  color: #ef4444;
}

.comparison-table th.advantage-col {
  width: 31%;
  text-align: center;
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(93, 15, 86, 0.15);
}

.comparison-table tbody tr:hover {
  background: rgba(93, 15, 86, 0.1);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 1rem;
  vertical-align: middle;
}

.comparison-table .feature-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.comparison-table .feature-name i {
  color: var(--accent-light);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.comparison-table .value-highlight {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-table .value-highlight.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-table .value-highlight.red {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-table .advantage {
  text-align: center;
}

.comparison-table .savings-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
  color: #10b981;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-table .savings-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* Responsive table */
@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .comparison-table th.advantage-col,
  .comparison-table .advantage {
    display: none;
  }
  
  .comparison-table th.feature-col {
    width: 35%;
  }
  
  .comparison-table th.zenska-col,
  .comparison-table th.generic-col {
    width: 32.5%;
  }
  
  .comparison-table .feature-name span {
    display: none;
  }
  
  .comparison-table .feature-name i {
    font-size: 1.2rem;
  }
  
  .comparison-table .value-highlight {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .comparison-table th {
    font-size: 0.75rem;
    padding: 0.6rem 0.4rem;
  }
  
  .comparison-table .value-highlight {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ENHANCED MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  /* Form layout improvements */
  .grid, .grid-2col, .grid-3col {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  /* Dashboard header */
  .dashboard-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .dashboard-header h2 {
    font-size: 1.5rem;
  }
  
  /* Stats grid mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Section blocks */
  .section-block, .dashboard-section {
    padding: 20px 15px;
    margin: 15px 0;
  }
  
  /* Benefits comparison */
  .benefits-comparison {
    grid-template-columns: 1fr;
  }
  
  .benefit-card {
    padding: 1.25rem;
  }
  
  /* Platform summary */
  .platform-summary {
    padding: 1.25rem;
  }
  
  .savings-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  
  .savings-value {
    font-size: 1.2rem;
  }
  
  /* Addon grid */
  .addon-grid {
    grid-template-columns: 1fr;
  }
  
  /* Profit breakdown */
  .profit-breakdown {
    padding: 15px;
  }
  
  .breakdown-row {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .breakdown-label {
    flex: 1 1 100%;
    font-size: 0.85rem;
  }
  
  .breakdown-value {
    flex: 1 1 100%;
    text-align: left;
    font-size: 1rem;
  }
  
  /* Impact badges */
  .impact-badges {
    flex-direction: column;
    align-items: stretch;
  }
  
  .badge {
    text-align: center;
  }
  
  /* Charts */
  .chart-container {
    height: 250px;
  }
  
  /* Category pills */
  .category-pills {
    gap: 8px;
  }
  
  .pill {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  /* Ultra small screens */
  .card {
    padding: 15px;
    margin: 10px auto;
    border-radius: 16px;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  /* Single column stats on very small screens */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Comparison table scroll indicator */
  .comparison-table-wrapper {
    position: relative;
  }
  
  .comparison-table-wrapper::after {
    content: "← Scroll →";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
  }
  
  /* Form inputs */
  input, select {
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  /* Analyze button */
  .analyze-btn {
    padding: 16px 24px;
    font-size: 1rem;
  }
  
  /* Back button */
  .back-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .addon-card {
    min-height: 100px;
  }
  
  .pill {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  button {
    min-height: 44px;
  }
}
