/* ============================================================
   TOOLSPOT — FUEL COST & MILEAGE CALCULATOR STYLESHEET
   ============================================================ */

:root {
  --tool-green: #10b981;
  --tool-green-soft: rgba(16, 185, 129, 0.12);
  --tool-green-glow: rgba(16, 185, 129, 0.25);
  --tool-green-hover: #059669;
}

body.light {
  --tool-green: #059669;
  --tool-green-soft: rgba(5, 150, 105, 0.08);
  --tool-green-glow: rgba(5, 150, 105, 0.15);
  --tool-green-hover: #047857;
}

/* ── GOAL HIGHLIGHT CARD ── */
.goal-highlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

body.light .goal-highlight-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.goal-highlight-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--tool-green-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.goal-highlight-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  z-index: 1;
  position: relative;
}

.goal-highlight-value {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--tool-green);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--tool-green-glow);
  z-index: 1;
  position: relative;
}

body.light .goal-highlight-value {
  color: var(--tool-green-hover);
  text-shadow: none;
}

.goal-highlight-subtitle {
  font-size: 12px;
  color: var(--text-2);
  z-index: 1;
  position: relative;
}

/* ── RESULT HERO CARD ── */
.result-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.light .result-hero {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.result-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 30%, var(--tool-green-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: var(--tool-green-soft);
  border: 1px solid var(--tool-green-glow);
  color: var(--tool-green);
}

body.light .status-badge {
  box-shadow: none;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  z-index: 1;
  position: relative;
}

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
}

body.light .stat-item {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.04);
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

/* ── FUEL TYPE SELECTOR CARDS ── */
.fuel-selector-wrap {
  margin-bottom: 20px;
}

.fuel-selector-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.fuel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

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

.fuel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fuel-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

body.light .fuel-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .fuel-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

.fuel-card.active {
  background: var(--tool-green-soft) !important;
  border: 1.5px solid var(--tool-green-glow) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.light .fuel-card.active {
  background: #ffffff !important;
  border-color: var(--tool-green) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.fuel-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.fuel-card:hover .fuel-icon {
  transform: scale(1.15);
}

.fuel-name {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
  line-height: 1.25;
}

body.light .fuel-name {
  color: #334155;
}

.fuel-card.active .fuel-name {
  color: var(--tool-green) !important;
}

body.light .fuel-card.active .fuel-name {
  color: var(--tool-green-hover) !important;
}

/* ── DUAL VEHICLE COMPARISON SUBPANEL ── */
.comp-subpanel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 18px;
  padding-top: 18px;
}

body.light .comp-subpanel {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.comp-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.8px;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.switch input:checked + .switch-slider {
  background-color: var(--tool-green);
  border-color: var(--tool-green-soft);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

body.light .switch-slider {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Custom range fills */
.range-slider:not(.blue-slider) {
  background: linear-gradient(to right, var(--tool-green) 0%, var(--tool-green) var(--fill, 40%), 
    rgba(255, 255, 255, 0.1) var(--fill, 40%), rgba(255, 255, 255, 0.1) 100%) !important;
}

body.light .range-slider:not(.blue-slider) {
  background: linear-gradient(to right, var(--tool-green) 0%, var(--tool-green) var(--fill, 40%), 
    rgba(0, 0, 0, 0.08) var(--fill, 40%), rgba(0, 0, 0, 0.08) 100%) !important;
}

.range-slider::-webkit-slider-thumb {
  border-color: var(--tool-green) !important;
  box-shadow: 0 0 0 4px var(--tool-green-soft), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.range-slider::-moz-range-thumb {
  border-color: var(--tool-green) !important;
  box-shadow: 0 0 0 4px var(--tool-green-soft) !important;
}

/* input boxes focus ring overrides */
.inp-box:focus-within {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

body.light .inp-box:focus-within {
  border-color: rgba(16, 185, 129, 0.55) !important;
  background: rgba(16, 185, 129, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10) !important;
}

/* Primary CTA Button override */
.rb-btn-primary {
  background: var(--tool-green-soft) !important;
  border-color: var(--tool-green-glow) !important;
  color: var(--tool-green) !important;
}

.rb-btn-primary:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: var(--tool-green-hover) !important;
}

body.light .rb-btn-primary {
  background: var(--tool-green-soft) !important;
  border-color: var(--tool-green-glow) !important;
  color: var(--tool-green) !important;
}

body.light .rb-btn-primary:hover {
  background: rgba(5, 150, 105, 0.12) !important;
  color: var(--tool-green-hover) !important;
}

/* ── MODE TABS (Green Style) ── */
.mode-toggle {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  z-index: 1;
}

body.light .mode-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.mode-toggle::before {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  border-radius: 8px;
  background: var(--tool-green-soft);
  border: 1px solid var(--tool-green-glow);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), background 0.28s, border-color 0.28s;
  z-index: 0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.light .mode-toggle::before {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#unit-toggle.mode-toggle::before {
  width: calc(50% - 6px);
}
#unit-toggle.mode-toggle.active-metric::before {
  transform: translateX(0);
}
#unit-toggle.mode-toggle.active-imperial::before {
  transform: translateX(calc(100% + 4px));
}

.mode-btn {
  flex: 1;
  position: relative;
  background: transparent !important;
  border: none;
  padding: 8px 12px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.28s ease, transform 0.2s;
  z-index: 1;
  box-shadow: none !important;
  text-align: center;
}

.mode-btn:hover {
  color: var(--text-2);
}

body.light .mode-btn {
  color: #556b82;
}

body.light .mode-btn:hover {
  color: #0f172a;
}

.mode-btn.active {
  background: transparent !important;
  color: var(--tool-green) !important;
  font-weight: 700;
  box-shadow: none !important;
}

body.light .mode-btn.active {
  color: var(--tool-green-hover) !important;
}

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

/* ── DUAL COMPARISON HIGHLIGHTS ── */
.comparison-summary-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light .comparison-summary-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.comparison-summary-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--tool-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.light .comparison-summary-title {
  color: var(--tool-green-hover);
}

.comparison-summary-text {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.comparison-summary-text strong {
  color: var(--text);
}

/* ── HISTORY LOGGER ── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light .table-responsive {
  border-color: rgba(0, 0, 0, 0.06);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.history-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  vertical-align: middle;
}

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

.history-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.history-table td strong {
  color: var(--text);
  font-family: 'Outfit', sans-serif;
}

body.light .history-table th {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
  background: rgba(0, 0, 0, 0.01);
}

body.light .history-table td {
  border-bottom-color: rgba(0, 0, 0, 0.04);
  color: #334155;
}

body.light .history-table tr:hover td {
  background: rgba(0, 0, 0, 0.01);
}

body.light .history-table td strong {
  color: #0f172a;
}

/* Mobile responsive collapse for log table */
@media (max-width: 768px) {
  .table-responsive {
    background: transparent !important;
    border: none !important;
    overflow-x: visible !important;
  }
  
  .history-table, 
  .history-table tbody, 
  .history-table tr, 
  .history-table td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .history-table thead {
    display: none !important;
  }
  
  .history-table tr {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  body.light .history-table tr {
    background: rgba(0, 0, 0, 0.015) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
  }
  
  .history-table td {
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: right !important;
  }
  
  .history-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }
}

.delete-entry-btn {
  background: transparent !important;
  border: none !important;
  color: #ef4444 !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  box-shadow: none !important;
}

.delete-entry-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

body.light .delete-entry-btn {
  color: #dc2626 !important;
}

body.light .delete-entry-btn:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* Screen default for print-only header */
.print-only-header {
  display: none !important;
}

/* PDF PRINT STYLES */
@media print {
  body {
    color: #111827;
  }

  .print-only-header {
    display: block !important;
    margin-bottom: 16px;
  }

  body[data-page="tool"] .bg-scene,
  body[data-page="tool"] #ts-header,
  body[data-page="tool"] #ts-footer,
  body[data-page="tool"] #ts-cookie,
  body[data-page="tool"] #ts-share,
  body[data-page="tool"] #ts-toast,
  body[data-page="tool"] .breadcrumb,
  body[data-page="tool"] .tool-header p,
  body[data-page="tool"] .tool-header h1 span,
  body[data-page="tool"] #tool-disclaimer,
  body[data-page="tool"] .tool-left,
  body[data-page="tool"] .result-hero::after,
  body[data-page="tool"] .action-panel,
  body[data-page="tool"] .log-panel,
  body[data-page="tool"] .explanatory-content,
  body[data-page="tool"] #tool-faq {
    display: none !important;
  }
}

/* ── DRIVING HABITS SELECTOR ── */
.habit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.habit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.habit-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

body.light .habit-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .habit-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

.habit-card.active {
  background: var(--tool-green-soft) !important;
  border: 1.5px solid var(--tool-green-glow) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}

body.light .habit-card.active {
  background: #ffffff !important;
  border-color: var(--tool-green) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.habit-name {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.35;
}

.habit-factor {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.3;
}

.habit-card.active .habit-name {
  color: var(--tool-green) !important;
}

body.light .habit-card.active .habit-name {
  color: var(--tool-green-hover) !important;
}

/* ── EV CHARGER SELECTOR ── */
.charger-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

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

.charger-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.charger-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

body.light .charger-card {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .charger-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

.charger-card.active {
  background: var(--tool-green-soft) !important;
  border: 1.5px solid var(--tool-green-glow) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}

body.light .charger-card.active {
  background: #ffffff !important;
  border-color: var(--tool-green) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.charger-name {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.35;
}

.charger-power {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.3;
}

.charger-card.active .charger-name {
  color: var(--tool-green) !important;
}

body.light .charger-card.active .charger-name {
  color: var(--tool-green-hover) !important;
}

/* ── CARPOOL & SPLIT PANEL ── */
.carpool-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  z-index: 1;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light .carpool-panel {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

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

.carpool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  letter-spacing: 0.8px;
}

.carpool-split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

body.light .carpool-split-row {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.split-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--tool-green);
}

body.light .split-value {
  color: var(--tool-green-hover);
}

.share-btn-wrap {
  margin-top: 12px;
}

.share-split-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tool-green-soft) !important;
  border: 1px solid var(--tool-green-glow) !important;
  color: var(--tool-green) !important;
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-split-btn:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

/* ── CHARGING OUTCOME BANNER ── */
.charging-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light .charging-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.charging-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.charging-banner-text {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.charging-banner-text strong {
  color: var(--text);
}

/* ── ECO HABITS SAVINGS BANNER ── */
.eco-savings-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light .eco-savings-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eco-savings-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--tool-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.light .eco-savings-title {
  color: var(--tool-green-hover);
}

.eco-savings-text {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.eco-savings-text strong {
  color: var(--text);
}

/* ── Value Badge Green Overrides ── */
.value-badge {
  background: var(--tool-green-soft) !important;
  color: var(--tool-green) !important;
  border: 1px solid var(--tool-green-glow) !important;
  padding: 5px 13px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: center;
}
body.light .value-badge {
  background: var(--tool-green-soft) !important;
  color: var(--tool-green-hover) !important;
  border-color: var(--tool-green-glow) !important;
}

/* ── COMPARE LIVE STATS ACCORDION BANNER ── */
.compare-live-stats {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.compare-live-stats.green {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
body.light .compare-live-stats.green {
  background: rgba(5, 150, 105, 0.04);
  border-color: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.compare-live-stats.expensive {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
body.light .compare-live-stats.expensive {
  background: rgba(220, 38, 38, 0.04);
  border-color: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.compare-live-stats.neutral {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}
body.light .compare-live-stats.neutral {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
  color: #4b5563;
}

/* ── PETROL BLEND 5-COLUMN SELECTOR ── */
#petrol-blend-grid, #petrol-blend-grid-b {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 768px) {
  #petrol-blend-grid, #petrol-blend-grid-b {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  #petrol-blend-grid, #petrol-blend-grid-b {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── PANEL SUBTITLE TEXT ── */
.panel-subtitle-text {
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

body.light .panel-subtitle-text {
  color: #475569;
}

/* ── UTILITY TO HIDE COLUMNS ── */
.history-table td.hidden-col,
.history-table th.hidden-col {
  display: none !important;
}



