/*
 * RMCPro v3.1 — Codename: NEO
 * Sprint UI 3.1 — Calculator Experience (Owner Revision)
 * Apple + Linear + Stripe + Vercel Style
 * R2: Hero Executive Control Center
 * R3: Grand Total Hero Number
 * R4: Material Card Marketplace
 * R5: Product Workspace
 * R6: Progress Indicator
 * R7: Desktop Sticky Summary
 */

/* ==========================================================================
   R6: PROGRESS INDICATOR — Live Step Tracker
   ========================================================================== */
.calc-progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.calc-progress-bar::-webkit-scrollbar { display: none; }

.calc-progress-step {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.calc-progress-step-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: default;
}

.calc-progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.calc-progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition-normal);
}

/* Done step */
.calc-progress-step.done .calc-progress-step-inner {
  background: var(--color-primary-50);
}
.calc-progress-step.done .calc-progress-dot {
  background: var(--color-primary-500);
  color: white;
}
.calc-progress-step.done .calc-progress-label { color: var(--color-primary-700); }

/* Active step */
.calc-progress-step.active .calc-progress-step-inner {
  background: var(--color-primary-500);
}
.calc-progress-step.active .calc-progress-dot {
  background: white;
  color: var(--color-primary-600);
}
.calc-progress-step.active .calc-progress-label { color: white; }

/* Pending step */
.calc-progress-step.pending .calc-progress-dot {
  background: var(--color-slate-200);
  color: var(--text-secondary);
}
.calc-progress-step.pending .calc-progress-label { color: var(--text-secondary); }

/* Connector line */
.calc-progress-connector {
  height: 2px;
  width: 28px;
  background: var(--border-medium);
  flex-shrink: 0;
  transition: background var(--transition-normal);
}
.calc-progress-connector.done { background: var(--color-primary-300); }

/* ==========================================================================
   R2: HERO — Executive Control Center
   ========================================================================== */
.calc-hero {
  margin-bottom: var(--space-6);
  padding: var(--space-7) var(--space-7);
  background: linear-gradient(135deg, #022c22 0%, #064e3b 35%, #065f46 70%, #047857 100%);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.calc-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.calc-hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

/* Top row: title + status */
.calc-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
  gap: var(--space-4);
}

.calc-hero-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-1) 0;
  line-height: 1.15;
}

.calc-hero-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-weight: 400;
}

.calc-hero-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.calc-hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Stats Grid inside Hero */
.calc-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.calc-hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  backdrop-filter: blur(8px);
  transition: background var(--transition-fast);
}

.calc-hero-stat:hover {
  background: rgba(255,255,255,0.12);
}

.calc-hero-stat-icon {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.calc-hero-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.calc-hero-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ==========================================================================
   STATUS BANNER (Revision / Approved)
   ========================================================================== */
.status-banner {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.status-banner-revision {
  background: #fff5f5;
  border: 1px solid #fecaca;
}

.status-banner-approved {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.status-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.calc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.calc-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.calc-section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.calc-section-icon-green  { background: var(--color-primary-50); color: var(--color-primary-600); }
.calc-section-icon-amber  { background: #fef3c7; color: #d97706; }
.calc-section-icon-blue   { background: #dbeafe; color: #1d4ed8; }
.calc-section-icon-purple { background: #f3e8ff; color: #7c3aed; }

/* ==========================================================================
   FORM SECTION CARD
   ========================================================================== */
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
  transition: box-shadow var(--transition-normal);
}

.calc-card:hover {
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   INFO FORM GRID
   ========================================================================== */
.calc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .calc-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   R5: PRODUCT WORKSPACE — Project Feel
   ========================================================================== */
.product-neo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
  animation: slideUp var(--transition-normal) forwards;
}

.product-neo-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Workspace top-bar */
.product-neo-header {
  background: linear-gradient(90deg, var(--color-slate-900) 0%, var(--color-slate-700) 100%);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.product-neo-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.product-neo-inputs {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 90px 110px;
  gap: var(--space-3);
}

/* Workspace header inputs — dark style */
.product-neo-header .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: white;
}

.product-neo-header .form-input:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  color: white;
}

.product-neo-header .form-input::placeholder { color: rgba(255,255,255,0.35); }

.product-neo-header select.form-input option {
  background: var(--color-slate-800);
  color: white;
}

@media (max-width: 640px) {
  .product-neo-inputs {
    grid-template-columns: 1fr;
  }
}

/* Workspace body */
.product-neo-body {
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.product-neo-meta-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 640px) {
  .product-neo-meta-row {
    grid-template-columns: 1fr;
  }
}

/* Margin input — big visual emphasis */
.product-margin-big-input {
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: var(--color-primary-600) !important;
  letter-spacing: -0.03em;
  text-align: center !important;
  border: 2px solid var(--color-primary-200) !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-4) !important;
  background: var(--color-primary-50) !important;
  height: 80px;
}

.product-margin-big-input:focus {
  border-color: var(--color-primary-500) !important;
  box-shadow: 0 0 0 4px var(--color-primary-100) !important;
}

/* ==========================================================================
   R4: MATERIAL — Card Marketplace Style
   ========================================================================== */
.material-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.material-workspace-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Material column headers */
.material-col-headers {
  display: grid;
  grid-template-columns: 1fr 90px 170px 130px 36px;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-1);
}

.material-col-header {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Material Card — Marketplace Style */
.material-neo-row {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  display: grid;
  grid-template-columns: 1fr 90px 170px 130px 36px;
  gap: var(--space-3);
  align-items: center;
  transition: all var(--transition-fast);
  animation: slideUp 200ms ease-out forwards;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.material-neo-row::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--color-primary-300);
  border-radius: 0 2px 2px 0;
  transition: all var(--transition-fast);
}

.material-neo-row:hover {
  border-color: var(--color-primary-200);
  box-shadow: 0 4px 16px rgba(16,185,129,0.1);
  transform: translateY(-1px);
}

.material-neo-row:hover::before {
  background: var(--color-primary-500);
  top: 0; bottom: 0;
}

/* Total display — big and prominent */
.material-total-display {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary-600);
  text-align: right;
  white-space: nowrap;
  background: var(--color-primary-50);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-primary-100);
  min-width: 100px;
}

.material-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-3);
  background: var(--color-slate-50);
}

@media (max-width: 768px) {
  .material-col-headers { display: none; }
  .material-neo-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-2);
  }
  .material-neo-row > input:first-child {
    grid-column: 1 / 3;
  }
  .material-total-display { min-width: unset; }
}

/* ==========================================================================
   PRODUCT FOOTER
   ========================================================================== */
.product-neo-footer {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.product-footer-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.product-footer-stat:last-child { border-right: none; }

.product-footer-stat-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.product-footer-stat-value {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.product-footer-price {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-4);
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
}

.product-footer-price-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.product-footer-price-value {
  font-weight: 900;
  font-size: 1.125rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.products-empty-neo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  background: var(--bg-surface);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-xl);
  text-align: center;
  gap: var(--space-4);
}

.products-empty-neo-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary-500);
}

/* ==========================================================================
   OPERATIONAL COST CARDS
   ========================================================================== */
.operational-neo-row {
  display: grid;
  grid-template-columns: 1fr 190px 36px;
  gap: var(--space-3);
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  animation: slideUp 200ms ease-out forwards;
  position: relative;
}

.operational-neo-row::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: #fcd34d;
  border-radius: 0 2px 2px 0;
  transition: all var(--transition-fast);
}

.operational-neo-row:hover {
  border-color: #fde68a;
  box-shadow: 0 4px 16px rgba(251,191,36,0.12);
  transform: translateY(-1px);
}

.operational-neo-row:hover::before {
  top: 0; bottom: 0;
  background: #f59e0b;
}

@media (max-width: 640px) {
  .operational-neo-row {
    grid-template-columns: 1fr 36px;
    grid-template-rows: auto auto;
  }
  .operational-neo-row input:nth-child(2) {
    grid-column: 1 / 2;
  }
}

/* ==========================================================================
   R3 + R7: SUMMARY CARD — Hero Number + Desktop Sticky
   ========================================================================== */
.summary-neo-card {
  background: linear-gradient(160deg, #022c22 0%, #064e3b 40%, #065f46 75%, #047857 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(5,150,105,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.summary-neo-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.summary-neo-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 15%;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.summary-neo-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.summary-neo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.summary-neo-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Row items */
.summary-neo-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.summary-neo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.summary-neo-row:hover {
  background: rgba(255,255,255,0.06);
}

.summary-neo-row-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.summary-neo-row-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* HPP highlight */
.summary-neo-hpp-row {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  margin: var(--space-1) 0;
}

.summary-neo-hpp-row .summary-neo-row-label {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.summary-neo-hpp-row .summary-neo-row-value {
  color: white;
  font-weight: 700;
}

/* R3: Grand Total — HERO NUMBER */
.summary-neo-grand-total {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-5);
  margin-top: var(--space-3);
  position: relative;
  z-index: 1;
}

.summary-neo-grand-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
}

/* THE HERO NUMBER */
.summary-neo-grand-value {
  font-size: 2.625rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
  /* Slight glow for premium feel */
  text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

.summary-neo-grand-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.summary-neo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */
.calc-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
  position: relative;
  z-index: 1;
}

.btn-submit-review-neo {
  width: 100%;
  padding: 15px 24px;
  background: #ffffff;
  color: var(--color-primary-700);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}

.btn-submit-review-neo:hover:not(:disabled) {
  background: var(--color-primary-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-submit-review-neo:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-submit-review-neo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-reset-neo {
  width: 100%;
  padding: 10px 24px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.btn-reset-neo:hover:not(:disabled) {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}

/* ==========================================================================
   ENGINE STATUS BOX
   ========================================================================== */
.engine-status-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.engine-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-500);
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--color-primary-100);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-primary-100); }
  50% { box-shadow: 0 0 0 7px var(--color-primary-50); }
}

/* ==========================================================================
   INPUT NEO (Material / Operational rows)
   ========================================================================== */
.input-neo {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--color-slate-50);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.input-neo:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
  background: white;
}

.input-neo::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.input-neo-right { text-align: right; }

/* ==========================================================================
   R7: DESKTOP STICKY SIDEBAR
   ========================================================================== */
@media (min-width: 1025px) {
  .workspace-sidebar {
    position: sticky;
    top: var(--space-6);
    max-height: calc(100dvh - 72px - var(--space-12));
    overflow-y: auto;
    scrollbar-width: none;
  }
  .workspace-sidebar::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   MOBILE: STICKY CTA BAR
   ========================================================================== */
.summary-sticky-mobile-cta {
  display: none;
}

@media (max-width: 1024px) {
  .summary-sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
    z-index: 100;
    display: flex;
    gap: var(--space-3);
    align-items: center;
    box-shadow: 0 -8px 24px rgba(15,23,42,0.08);
  }

  .view-container {
    padding-bottom: 100px !important;
  }
}

/* ==========================================================================
   ADD BUTTONS
   ========================================================================== */
.btn-add-neo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  border: 1px dashed var(--color-primary-300);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-neo:hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-500);
  transform: translateY(-1px);
}

.btn-add-neo:active { transform: scale(0.97); }

.btn-add-product-neo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
  white-space: nowrap;
}

.btn-add-product-neo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}

.btn-add-product-neo:active { transform: scale(0.97); }

.btn-remove-neo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-remove-neo:hover {
  background: var(--color-red-soft);
  color: var(--color-red-text);
}

/* Dark header remove button */
.product-neo-header .btn-remove-neo {
  color: rgba(255,255,255,0.4);
}

.product-neo-header .btn-remove-neo:hover {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
}

/* ==========================================================================
   R8: REVIEW MODAL — Premium Proposal Style
   ========================================================================== */
/* Applied via reviewModal.js — class hooks */
.rm-decision-hero {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 60%, #047857 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.rm-decision-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.rm-decision-grand {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.rm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-3);
}

.rm-stat-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.rm-stat-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}

.rm-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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