/* GoVolta App Styles — matches landing page design tokens */
:root {
  --bg-deep: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --accent-green: #22d67a;
  --accent-green-dim: rgba(34, 214, 122, 0.12);
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --border-active: rgba(34, 214, 122, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 1.2rem;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* APP LAYOUT */
.app-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  min-height: 100vh;
  position: relative;
}

/* TOP HEADER */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0 0.75rem;
  position: sticky;
  top: 0;
  background: var(--bg-deep);
  z-index: 10;
}

.app-nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-nav-brand span { color: var(--accent-green); }

/* ACCOUNT BUTTON (top-right) */
.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.account-btn:hover,
.account-btn.active {
  color: var(--accent-green);
  border-color: var(--border-active);
  background: var(--accent-green-dim);
}

/* PAGE CONTENT */
.page {
  padding-bottom: 96px;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 0.4rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.45rem 0.5rem 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  flex: 1;
  min-width: 0;
}
.bottom-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--accent-green);
}

/* CENTER FAB SCAN BUTTON */
.bottom-nav-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex: 1;
  padding-bottom: 0.2rem;
  margin-top: -24px;
}
.bottom-nav-fab-circle {
  width: 58px;
  height: 58px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(34, 214, 122, 0.45);
  border: 3px solid #0b0f17;
  color: #0a0e17;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bottom-nav-fab:hover .bottom-nav-fab-circle,
.bottom-nav-fab.active .bottom-nav-fab-circle {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(34, 214, 122, 0.65);
}
.bottom-nav-fab > span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.bottom-nav-fab.active > span {
  color: var(--accent-green);
}

/* SCANNER */
.scanner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.scanner-upload-area {
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px dashed transparent;
  margin: 1rem;
  border-radius: var(--radius-sm);
}

.scanner-upload-area:hover {
  border-color: var(--border-active);
  background: rgba(34, 214, 122, 0.03);
}

.scanner-upload-area.dragover {
  border-color: var(--accent-green);
  background: rgba(34, 214, 122, 0.06);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.upload-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.upload-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.upload-methods {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

.upload-btn {
  flex: 1;
  padding: 0.85rem;
  background: var(--accent-green-dim);
  border: 1px solid rgba(34, 214, 122, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.upload-btn:hover {
  background: rgba(34, 214, 122, 0.18);
}

.upload-btn.primary {
  background: var(--accent-green);
  color: var(--bg-deep);
  border-color: var(--accent-green);
}

.upload-btn.primary:hover {
  background: #1ec06d;
}

/* IMAGE PREVIEW */
.image-preview {
  position: relative;
  margin: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.image-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-preview-text {
  font-size: 1.02rem;
  color: white;
  font-weight: 500;
}

.btn-remove {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--accent-red);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
}

/* ROOM SELECT */
.room-selector {
  padding: 0 1rem 1rem;
}

.room-selector label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.room-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.room-chip {
  padding: 0.4rem 0.85rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 1.00rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.room-chip:hover {
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-primary);
}

.room-chip.active {
  background: var(--accent-green-dim);
  border-color: rgba(34, 214, 122, 0.3);
  color: var(--accent-green);
}

/* SCAN BUTTON */
.scan-action {
  padding: 0 1rem 1.25rem;
}

.btn-scan {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-green), #4ade80);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-scan:hover { opacity: 0.9; }
.btn-scan:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* LOADING */
.scanning-state {
  padding: 3rem 2rem;
  text-align: center;
}

.scanning-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.scanning-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.scanning-subtext {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* SIMPLIFIED SCANNER */
.scanner-card--minimal {
  padding: 1.5rem 1rem;
}

.upload-methods--large {
  padding: 0 0 1.25rem;
  gap: 1rem;
}

.upload-btn--hero {
  padding: 1.1rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

/* Primary camera button — prominent green action */
.upload-btn--camera {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--accent);
  color: #0a0e17;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.upload-btn--camera:hover {
  background: #1ebe6a;
}
.upload-btn--camera:active {
  transform: scale(0.98);
}

/* Secondary upload methods (bottom of camera-first screen) */
.upload-methods--secondary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin-top: 1rem;
}

.upload-btn--secondary {
  padding: 0.85rem;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.upload-btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.room-selector--compact {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0 0 1rem;
  flex-wrap: wrap;
}

.room-selector-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.room-selector--compact .room-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.4rem;
}

.room-selector--compact .room-chips::-webkit-scrollbar { display: none; }

.room-selector--compact .room-chip {
  font-size: 0.92rem;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.scan-manual-link--center {
  text-align: center;
  font-size: 1.00rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
}

.scan-manual-link--center a {
  color: var(--accent-green);
}

/* CONFIRMATION CARD */
.confirm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}

.confirm-card-header {
  padding: 1.5rem 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.confirm-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.confirm-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.confirm-card-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
}

.confirm-card-body {
  padding: 0.75rem 1.25rem;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  gap: 1rem;
}

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

.confirm-row--highlight {
  background: rgba(34, 214, 122, 0.04);
  margin: 0 -1.25rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0;
}

.confirm-label {
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.confirm-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.confirm-value--model {
  font-size: 1.00rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.confirm-value--cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green);
}

.confirm-energy-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.confirm-card-actions {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-confirm {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-green), #4ade80);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-confirm:hover { opacity: 0.9; }

.btn-rescan {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-rescan:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

/* RESULT CARD */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease;
}

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

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.result-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.result-detail {
  font-size: 1.00rem;
  color: var(--text-muted);
}

.result-cost {
  text-align: right;
}

.result-cost-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.result-cost-label {
  font-size: 0.90rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ENERGY BAR */
.energy-bar-container {
  padding: 0.75rem 1.25rem 1rem;
}

.energy-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.energy-bar {
  height: 6px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.energy-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.energy-bar-fill.class-a { background: var(--accent-green); width: 14%; }
.energy-bar-fill.class-b { background: #86efac; width: 28%; }
.energy-bar-fill.class-c { background: var(--accent-amber); width: 42%; }
.energy-bar-fill.class-d { background: #fb923c; width: 57%; }
.energy-bar-fill.class-e { background: #f87171; width: 71%; }
.energy-bar-fill.class-f { background: var(--accent-red); width: 85%; }
.energy-bar-fill.class-g { background: #dc2626; width: 100%; }

/* ALTERNATIVES */
.alternatives-section {
  padding: 0 1.25rem 1.25rem;
}

.alternatives-title {
  font-size: 0.92rem;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.alt-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem;
  background: rgba(34, 214, 122, 0.04);
  border: 1px solid rgba(34, 214, 122, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.alt-card:last-child { margin-bottom: 0; }

.alt-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.alt-detail {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.alt-savings {
  text-align: right;
}

.alt-savings-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent-green);
  font-size: 0.95rem;
}

.alt-savings-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* MY HOME DASHBOARD */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-card.highlight {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
}

.stat-card.savings {
  border-color: rgba(34, 214, 122, 0.2);
  background: rgba(34, 214, 122, 0.04);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card.highlight .stat-value { color: var(--accent-red); }
.stat-card.savings .stat-value { color: var(--accent-green); }

/* ROOM SECTIONS */
.room-section {
  margin-bottom: 1.5rem;
}

.room-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.room-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.room-section-cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-amber);
}

.appliance-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.appliance-list-item:hover {
  border-color: rgba(148, 163, 184, 0.2);
}

.appliance-list-name {
  font-weight: 500;
  font-size: 0.92rem;
}

.appliance-list-detail {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.appliance-list-cost {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.appliance-list-item .btn-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.appliance-list-item:hover .btn-delete {
  opacity: 1;
}

.appliance-list-item .btn-delete:hover {
  color: var(--accent-red);
}

/* COST COLORS */
.cost-high { color: var(--accent-red); }
.cost-med { color: var(--accent-amber); }
.cost-low { color: var(--accent-green); }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-green);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  z-index: 100;
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* TIPS SECTION */
.tips-section {
  margin-top: 1.5rem;
}

.tips-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tip-card {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tip-card strong {
  color: var(--text-primary);
}

/* EDIT BUTTON on appliance row */
.appliance-list-item .btn-edit {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.02rem;
  padding: 0.25rem 0.4rem;
  margin-left: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.appliance-list-item:hover .btn-edit {
  opacity: 1;
}

.appliance-list-item .btn-edit:hover {
  color: var(--accent-green);
  background: var(--accent-green-dim);
}

/* EDIT BOTTOM SHEET */
.edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  animation: overlayIn 0.2s ease;
}

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

.edit-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  animation: sheetUp 0.25s ease;
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.edit-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(148, 163, 184, 0.4);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
  cursor: grab;
}

.edit-sheet-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.edit-sheet-close:hover {
  background: rgba(148, 163, 184, 0.2);
}

.edit-sheet-close:active {
  transform: scale(0.95);
}

.edit-sheet-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edit-sheet-subtitle {
  font-size: 1.00rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.edit-field {
  margin-bottom: 1rem;
}

.edit-field label {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.edit-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.edit-field input:focus {
  border-color: var(--border-active);
}

.edit-field .field-hint {
  font-size: 0.90rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.edit-sheet-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-save {
  flex: 1;
  padding: 0.9rem;
  background: var(--accent-green);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover { opacity: 0.9; }
.btn-save:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-cancel-edit {
  padding: 0.9rem 1.25rem;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-edit:hover {
  background: rgba(148, 163, 184, 0.12);
}

/* ─── HOUSEHOLD SUMMARY ──────────────────────────────────────────────────────── */
.household-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.household-summary-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.00rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.household-stats-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.household-stat { flex: 1; text-align: center; }

.household-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.household-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.household-stat-sep {
  font-size: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.household-net {
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.household-net.net-pos {
  background: rgba(34, 214, 122, 0.08);
  border: 1px solid rgba(34, 214, 122, 0.2);
  color: var(--accent-green);
}

.household-net.net-neg {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

.household-net strong { font-weight: 700; }

/* Italian government incentive summary banner */
.incentive-summary-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
}

.incentive-summary-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.incentive-summary-body {
  flex: 1;
  min-width: 0;
}

.incentive-summary-title {
  font-size: 0.90rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(129, 140, 248);
  margin-bottom: 0.15rem;
}

.incentive-summary-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(165, 180, 252);
  margin-bottom: 0.25rem;
}

.incentive-summary-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── APPLIANCE CARD (new, replaces appliance-list-item) ────────────────────── */
.appliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.appliance-card.expanded {
  border-color: rgba(34, 214, 122, 0.25);
}

.appliance-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  gap: 0.75rem;
}

.appliance-card-info { flex: 1; min-width: 0; }

.appliance-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.appliance-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  margin-top: 0.35rem;
}

.badge-green {
  background: rgba(34, 214, 122, 0.1);
  border: 1px solid rgba(34, 214, 122, 0.2);
  color: var(--accent-green);
}

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

.btn-eco {
  background: rgba(34, 214, 122, 0.08);
  border: 1px solid rgba(34, 214, 122, 0.15);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-eco:hover,
.btn-eco.active {
  background: rgba(34, 214, 122, 0.15);
  border-color: rgba(34, 214, 122, 0.35);
  color: var(--accent-green);
}

/* Keep old btn-edit/delete on appliance-card too */
.appliance-card .btn-edit,
.appliance-card .btn-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0.35rem;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.2s;
  opacity: 0.6;
}

.appliance-card:hover .btn-edit,
.appliance-card:hover .btn-delete { opacity: 1; }

.appliance-card .btn-edit:hover { color: var(--accent-green); background: var(--accent-green-dim); }
.appliance-card .btn-delete:hover { color: var(--accent-red); }

/* ─── ECONOMICS CARD ─────────────────────────────────────────────────────────── */
.eco-card {
  border-top: 1px solid rgba(34, 214, 122, 0.12);
  padding: 1.25rem 1rem 1rem;
  animation: fadeIn 0.2s ease;
}

.eco-no-data {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.eco-no-data-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  text-align: center;
}

/* Current vs Alternative */
.eco-comparison {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.eco-side {
  flex: 1;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
}

.eco-current {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.eco-alternative {
  background: rgba(34, 214, 122, 0.04);
  border: 1px solid rgba(34, 214, 122, 0.12);
}

.eco-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  flex-shrink: 0;
}

.eco-side-label {
  font-size: 1.00rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.eco-side-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.eco-side-detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.eco-side-kwh {
  font-size: 0.90rem;
  color: var(--text-secondary);
}

.eco-side-cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Size note */
.eco-size-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.eco-size-edit {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
}

.eco-size-edit:hover { text-decoration: underline; }

/* Breakdown rows */
.eco-breakdown {
  margin-bottom: 0.75rem;
}

.eco-breakdown-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.eco-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  gap: 0.75rem;
}

.eco-row-label {
  font-size: 1.00rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.eco-row-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.eco-row-icon {
  margin-right: 0.25rem;
}

.eco-row-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  text-align: right;
}

.eco-positive {
  background: rgba(34, 214, 122, 0.04);
}

.eco-positive .eco-row-value { color: var(--accent-green); }

.eco-negative {
  background: rgba(239, 68, 68, 0.04);
}

.eco-negative .eco-row-value { color: var(--accent-red); }

/* Net row */
.eco-net {
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.eco-net-positive {
  background: rgba(34, 214, 122, 0.08);
  border: 1px solid rgba(34, 214, 122, 0.2);
}

.eco-net-positive .eco-row-label { color: var(--text-primary); font-weight: 600; }
.eco-net-positive .eco-row-value { color: var(--accent-green); font-size: 1rem; }

.eco-net-negative {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.eco-net-negative .eco-row-label { color: var(--text-primary); font-weight: 600; }
.eco-net-negative .eco-row-value { color: var(--accent-amber); font-size: 1rem; }

.eco-net-value { font-size: 1.1rem !important; }

/* How-it-works one-liner for incentives in eco breakdown */
.incentive-howit {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  padding: 0.5rem 0.75rem;
  background: rgba(99, 102, 241, 0.06);
  border-left: 2px solid rgba(99, 102, 241, 0.35);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: rgb(148, 163, 196);
  line-height: 1.45;
}

.incentive-howit-icon {
  flex-shrink: 0;
  color: rgb(129, 140, 248);
  font-size: 0.8rem;
  margin-top: 0.05rem;
}

/* Formula */
.eco-formula {
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.eco-formula-label {
  font-size: 1.00rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.eco-formula-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.eco-formula-values {
  font-size: 1.00rem;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.eco-formula-values strong {
  color: var(--accent-green);
}

/* Disclaimer */
.eco-disclaimer {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 0.25rem;
}

/* ─── BNPL DURATION SLIDER ──────────────────────────────────────────────────── */
.bnpl-slider-section {
  background: rgba(34, 214, 122, 0.03);
  border: 1px solid rgba(34, 214, 122, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem 0.75rem;
  margin-bottom: 0.75rem;
}

.bnpl-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.bnpl-slider-title {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bnpl-monthly-badge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

.bnpl-monthly-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.bnpl-monthly-unit {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.75;
}

/* Track container */
.bnpl-track-container {
  position: relative;
  margin-bottom: 0.3rem;
}

/* Styled range input */
.bnpl-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  /* Filled left portion in green, unfilled right in muted */
  background: linear-gradient(
    to right,
    var(--accent-green) 0%,
    var(--accent-green) var(--fill-pct, 0%),
    rgba(148, 163, 184, 0.18) var(--fill-pct, 0%),
    rgba(148, 163, 184, 0.18) 100%
  );
  transition: background 0.1s;
}

.bnpl-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(34, 214, 122, 0.2), 0 2px 6px rgba(0,0,0,0.3);
  transition: box-shadow 0.15s, transform 0.1s;
}

.bnpl-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px rgba(34, 214, 122, 0.28), 0 2px 6px rgba(0,0,0,0.3);
  transform: scale(1.1);
}

.bnpl-range::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 7px rgba(34, 214, 122, 0.22), 0 2px 6px rgba(0,0,0,0.3);
}

.bnpl-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 3px rgba(34, 214, 122, 0.2), 0 2px 6px rgba(0,0,0,0.3);
}

.bnpl-range::-moz-range-progress {
  background: var(--accent-green);
  height: 4px;
  border-radius: 2px;
}

/* Tick labels */
.bnpl-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.bnpl-tick {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 1.00rem;
  color: var(--text-muted);
  transition: color 0.15s;
  line-height: 1.3;
}

.tick-spacer,
.tick-bk-icon {
  height: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tick-bk-icon {
  font-size: 0.55rem;
  color: var(--accent-green);
  line-height: 1;
}

.bnpl-tick.tick-bk { color: var(--accent-green); }
.bnpl-tick.tick-sel { color: var(--text-primary); font-weight: 700; }
.bnpl-tick.tick-sel.tick-bk { color: var(--accent-green); font-weight: 700; }

/* Breakeven hint line */
.bnpl-bk-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--accent-green);
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.bnpl-bk-hint-text {
  color: var(--text-muted);
}

.bnpl-bk-active {
  background: rgba(34, 214, 122, 0.1);
  border: 1px solid rgba(34, 214, 122, 0.25);
  border-radius: 100px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* Impossible breakeven note */
.bnpl-impossible-note {
  font-size: 0.90rem;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* HIDDEN */
.hidden { display: none !important; }

/* PAGE TRANSITIONS */
.page { animation: fadeIn 0.25s ease; }

/* ─── SCAN ECONOMICS TEASER ──────────────────────────────────────────────────── */
.scan-eco-teaser {
  margin: 0 1.25rem 1.25rem;
  background: rgba(34, 214, 122, 0.03);
  border: 1px solid rgba(34, 214, 122, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.scan-eco-teaser-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.00rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.scan-eco-teaser-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.scan-eco-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.00rem;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.scan-eco-row span:last-child {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}

.scan-eco-net {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.25rem;
}

.scan-eco-net.net-pos {
  background: rgba(34, 214, 122, 0.08);
  color: var(--accent-green);
}

.scan-eco-net.net-neg {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-amber);
}

.scan-eco-cta {
  text-align: center;
}

/* ─── PRODUCT CARDS SECTION ──────────────────────────────────────────────────── */
.product-cards-section {
  padding: 0 1.25rem 1.25rem;
}

.eco-alternatives-section {
  padding: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.product-cards-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.product-cards-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.00rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-cards-section-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-weight: 500;
}

/* ─── PRODUCT CARD ──────────────────────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(34, 214, 122, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:last-child {
  margin-bottom: 0;
}

.product-card:hover {
  border-color: rgba(34, 214, 122, 0.3);
  box-shadow: 0 0 20px rgba(34, 214, 122, 0.06);
}

/* Main layout: image + details */
.product-card-main {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  align-items: flex-start;
}

/* Product image */
.product-card-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 214, 122, 0.06), rgba(148, 163, 184, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-image.img-fallback {
  background: linear-gradient(135deg, rgba(34, 214, 122, 0.08), rgba(17, 24, 39, 1));
}

.product-card-image.img-fallback::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(34, 214, 122, 0.25);
  border-radius: 8px;
}

/* Product details */
.product-card-details {
  flex: 1;
  min-width: 0;
}

/* Header: brand, model, energy badge */
.product-card-header {
  margin-bottom: 0.4rem;
}

.product-card-brand {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.product-card-model {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Energy class badge */
.energy-badge {
  display: inline-block;
  font-size: 1.00rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  font-family: 'Space Grotesk', sans-serif;
  vertical-align: middle;
}

.energy-badge-a {
  background: rgba(34, 214, 122, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(34, 214, 122, 0.3);
}

.energy-badge-b {
  background: rgba(134, 239, 172, 0.12);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.25);
}

.energy-badge-c {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.energy-badge-d {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Price row */
.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.product-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.product-card-bnpl-price {
  font-size: 0.88rem;
  color: var(--accent-amber);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* Meta row: annual cost, retailer, BNPL provider */
.product-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.product-card-energy-cost {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Retailer badge */
.retailer-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.retailer-default {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.retailer-amazon {
  background: rgba(255, 153, 0, 0.08);
  color: #ff9900;
  border: 1px solid rgba(255, 153, 0, 0.2);
}

.retailer-mediaworld {
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.retailer-euronics {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.retailer-unieuro {
  background: rgba(168, 85, 247, 0.08);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.15);
}

/* BNPL provider tag */
.bnpl-provider-tag {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Feature chips */
.product-card-features {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.85rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.product-card-features::-webkit-scrollbar {
  display: none;
}

.feature-chip {
  display: inline-block;
  font-size: 0.66rem;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  transition: border-color 0.2s;
}

.product-card:hover .feature-chip {
  border-color: rgba(148, 163, 184, 0.18);
}

/* Savings highlight */
.product-card-savings {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  margin: 0 0.85rem;
  background: rgba(34, 214, 122, 0.06);
  border: 1px solid rgba(34, 214, 122, 0.12);
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.product-card-savings-icon {
  font-size: 1.02rem;
  flex-shrink: 0;
}

.product-card-savings-text {
  font-size: 1.00rem;
  color: var(--accent-green);
  font-weight: 500;
}

.product-card-savings-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* Incentive badge on product card */
.product-card-incentive {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(99, 102, 241, 0.07);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.product-card-incentive-icon {
  font-size: 1.02rem;
  flex-shrink: 0;
}

.product-card-incentive-text {
  font-size: 1.00rem;
  color: rgb(165, 180, 252);
  font-weight: 500;
}

.product-card-incentive-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: rgb(199, 210, 254);
}

/* ─── SAVINGS CALCULATOR (mini) ─────────────────────────────────────────────── */
.savings-calc {
  margin: 0 0.85rem 0.75rem;
  background: rgba(148, 163, 184, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem;
}

.savings-calc-sides {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.savings-calc-side {
  flex: 1;
  text-align: center;
  padding: 0 0.35rem;
}

.savings-calc-label {
  font-size: 0.90rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.savings-calc-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.savings-calc-value-amber {
  color: var(--accent-amber);
}

.savings-calc-value-green {
  color: var(--accent-green);
}

.savings-calc-unit {
  font-size: 1.00rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Bar visualization */
.savings-calc-bar {
  height: 4px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.savings-calc-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
  min-width: 4px;
}

.bar-amber {
  background: var(--accent-amber);
}

.bar-green {
  background: var(--accent-green);
}

.savings-calc-sub {
  font-size: 0.90rem;
  color: var(--text-muted);
}

/* Divider between the two sides */
.savings-calc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0.15rem;
  padding-top: 0.85rem;
}

.savings-calc-vs {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.15rem 0.35rem;
  line-height: 1;
}

/* Net monthly benefit */
.savings-calc-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
}

.savings-calc-net.net-positive {
  background: rgba(34, 214, 122, 0.06);
  border: 1px solid rgba(34, 214, 122, 0.15);
}

.savings-calc-net.net-negative {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.savings-calc-net-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.savings-calc-net-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.savings-calc-net.net-positive .savings-calc-net-value {
  color: var(--accent-green);
}

.savings-calc-net.net-negative .savings-calc-net-value {
  color: var(--accent-amber);
}

/* ─── PRODUCT CARD CTA BUTTON ───────────────────────────────────────────────── */
.product-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 1.7rem);
  margin: 0 0.85rem 0.85rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, var(--accent-green), #4ade80);
  border: none;
  border-radius: 8px;
  color: var(--bg-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}

.product-card-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 214, 122, 0.25);
}

.product-card-cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.cta-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.product-card-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* ─── ENERGY SCORE HERO ────────────────────────────────────────────────────── */
.energy-score-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.energy-score-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34, 214, 122, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.energy-score-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.energy-score-ring {
  width: 100%;
  height: 100%;
}

.energy-score-ring-fill {
  transition: stroke-dasharray 1s ease;
}

.energy-score-ring-fill.grade-a { stroke: #22d67a; }
.energy-score-ring-fill.grade-b { stroke: #86efac; }
.energy-score-ring-fill.grade-c { stroke: #f59e0b; }
.energy-score-ring-fill.grade-d { stroke: #fb923c; }
.energy-score-ring-fill.grade-fg { stroke: #ef4444; }

.energy-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.energy-score-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.energy-score-of {
  font-size: 0.90rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.energy-score-info {
  flex: 1;
  min-width: 0;
}

.energy-score-grade-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.energy-score-grade-badge.grade-a {
  background: rgba(34, 214, 122, 0.12);
  color: #22d67a;
  border: 1px solid rgba(34, 214, 122, 0.3);
}

.energy-score-grade-badge.grade-b {
  background: rgba(134, 239, 172, 0.1);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.25);
}

.energy-score-grade-badge.grade-c {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.energy-score-grade-badge.grade-d {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.energy-score-grade-badge.grade-fg {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.energy-score-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.energy-score-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ─── SHARE BUTTON (header) ───────────────────────────────────────────────── */
.dashboard-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: rgba(34, 214, 122, 0.08);
  border: 1px solid rgba(34, 214, 122, 0.2);
  border-radius: 8px;
  color: var(--accent-green);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.00rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-share:hover {
  background: rgba(34, 214, 122, 0.15);
  border-color: rgba(34, 214, 122, 0.35);
}

.btn-share svg {
  flex-shrink: 0;
}

/* ─── SHARE CTA BANNER ────────────────────────────────────────────────────── */
.share-cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 214, 122, 0.06), rgba(34, 214, 122, 0.02));
  border: 1px solid rgba(34, 214, 122, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.share-cta-banner:hover {
  border-color: rgba(34, 214, 122, 0.3);
  background: linear-gradient(135deg, rgba(34, 214, 122, 0.1), rgba(34, 214, 122, 0.04));
}

.share-cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.share-cta-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.share-cta-text span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.share-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share-mini {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-share-mini:hover {
  border-color: rgba(34, 214, 122, 0.3);
  color: var(--accent-green);
  background: rgba(34, 214, 122, 0.08);
}

.share-cta-arrow {
  font-size: 1.2rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 380px) {
  .upload-methods { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }

  .energy-score-hero {
    flex-direction: column;
    text-align: center;
  }

  .energy-score-info {
    text-align: center;
  }

  .product-card-main {
    flex-direction: column;
    gap: 0.65rem;
  }

  .product-card-image {
    width: 100%;
    height: 140px;
  }

  .product-card-model {
    white-space: normal;
  }

  .savings-calc-value {
    font-size: 0.95rem;
  }
}

@media (min-width: 381px) and (max-width: 520px) {
  .product-card-image {
    width: 72px;
    height: 72px;
  }
}

/* ─── STUB PAGES (Bills, Account) ────────────────────────────────────────── */
.stub-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 1rem;
  gap: 0.75rem;
}
.stub-page-icon {
  font-size: 3.5rem;
  line-height: 1;
}
.stub-page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stub-page-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
}
.stub-coming-soon {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 360px;
  text-align: left;
}
.stub-coming-label {
  display: inline-block;
  background: var(--accent-green-dim);
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
}
.stub-coming-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stub-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.stub-feature-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* ACCOUNT PAGE */
.account-session-info {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0.5rem 0;
}
.account-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  min-width: 90px;
}
.account-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}
.account-stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ─── ENERGY SCORE DEDICATED PAGE ────────────────────────────────────────── */
.score-page {
  padding: 0.5rem 0 1rem;
}
.score-page-header {
  margin-bottom: 1.5rem;
}
.score-page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}
.score-page-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.score-ring-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  margin: 0 auto 0.5rem;
  width: 160px;
  height: 160px;
}
.score-ring-lg {
  width: 160px;
  height: 160px;
}
.score-ring-inner-lg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-number-lg {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
  color: var(--text-primary);
}
.score-of-lg {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.score-grade-badge-lg {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.score-desc-lg {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 340px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.score-stats-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.score-stat {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.75rem;
  text-align: center;
}
.score-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}
.score-stat-label {
  font-size: 1.00rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.score-breakdown-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.score-breakdown-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.score-breakdown-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}
.score-breakdown-name {
  font-size: 1.02rem;
  color: var(--text-primary);
  min-width: 100px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-breakdown-class {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  min-width: 24px;
  text-align: center;
}
.score-breakdown-bar-wrap {
  flex: 2;
  height: 5px;
  background: rgba(148,163,184,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.score-breakdown-bar {
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ─── REWARDS PAGE ────────────────────────────────────────────────────────── */
.rewards-page {
  padding: 0.5rem 1rem 1rem;
}
.rewards-header {
  margin-bottom: 1rem;
}
.rewards-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}
.rewards-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.rewards-progress-bar-wrap {
  height: 6px;
  background: rgba(148,163,184,0.1);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.rewards-progress-bar {
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.rewards-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.reward-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  position: relative;
  transition: border-color 0.2s;
}
.reward-badge.earned {
  border-color: rgba(34, 214, 122, 0.3);
  background: linear-gradient(135deg, rgba(34, 214, 122, 0.05), var(--bg-card));
}
.reward-badge.locked {
  opacity: 0.5;
}
.reward-badge-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.reward-badge-label {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}
.reward-badge-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.reward-badge-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px;
  height: 18px;
  background: var(--accent-green);
  color: #0a0e17;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
}
.reward-badge-lock {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.4;
}
.rewards-coming-soon {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.5;
}
.rewards-coming-soon p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── ENERGY TIPS PAGE ─────────────────────────────────────────────────────── */

.tips-page {
  padding: 1.25rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tips-header {
  padding-bottom: 0.25rem;
}
.tips-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.15rem;
}
.tips-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Savings banner */
.tips-savings-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(34,214,122,0.1), var(--bg-card));
  border: 1px solid rgba(34,214,122,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.tips-savings-banner.tips-savings-empty {
  background: var(--bg-card);
  border-color: var(--border);
}
.tips-savings-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.tips-savings-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.2;
}
.tips-savings-empty .tips-savings-amount {
  color: var(--text-primary);
}
.tips-savings-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Tips list */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Individual tip card */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.1rem 1.2rem;
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: visible;
  transition: all 0.25s ease;
  opacity: 0.9;
}
.tip-card:active {
  transform: scale(0.975);
}
/* Adopted: solid, bold, full contrast */
.tip-card.tip-flagged {
  opacity: 1;
  border-color: rgba(34,214,122,0.35);
  background: linear-gradient(135deg, rgba(34,214,122,0.08), var(--bg-card));
}

.tip-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-right: 2.5rem; /* Space for the check indicator */
}
.tip-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0rem;
  transition: opacity 0.25s ease;
}
/* Non-adopted: fade icon */
.tip-card:not(.tip-flagged) .tip-icon {
  opacity: 0.8;
}
.tip-content {
  flex: 1;
  min-width: 0;
}
.tip-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: all 0.25s ease;
}
/* Non-adopted: faded title */
.tip-card:not(.tip-flagged) .tip-title {
  opacity: 0.85;
  font-weight: 600;
}
/* Adopted: bold white text */
.tip-card.tip-flagged .tip-title {
  color: #ffffff;
  font-weight: 700;
}
.tip-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}
/* Non-adopted: fade desc */
.tip-card:not(.tip-flagged) .tip-desc {
  opacity: 0.75;
}

/* Flag button */
.tip-flag-btn {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  margin-left: 0.25rem;
}
.tip-flag-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(34,214,122,0.06);
}
.tip-flag-btn.flagged {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(34,214,122,0.12);
}

/* Saving row */
.tip-saving-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  transition: opacity 0.25s ease;
}
/* Non-adopted: fade savings */
.tip-card:not(.tip-flagged) .tip-saving-row {
  opacity: 0.6;
}
.tip-saving-badge {
  background: rgba(34,214,122,0.15);
  color: var(--accent-green);
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}
/* Adopted: brighter badge */
.tip-flagged .tip-saving-badge {
  background: rgba(34,214,122,0.2);
  color: #4ade80;
}
.tip-adopted-label {
  font-size: 1rem;
  color: var(--accent-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.3rem;
}
/* Adopted: integrate label with bright checkmark */
.tip-flagged .tip-adopted-label {
  color: #4ade80;
  font-weight: 600;
}

/* Energy Score mini-card within tips page */
.tips-score-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 0.25rem;
  transition: border-color 0.2s;
}
.tips-score-card:hover {
  border-color: rgba(148,163,184,0.3);
}
.tips-score-left {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.tips-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tips-score-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.tips-score-of {
  font-size: 0.90rem;
  color: var(--text-muted);
}
.tips-score-right {
  flex: 1;
}
.tips-grade-badge {
  font-size: 0.8rem !important;
  padding: 0.15rem 0.55rem !important;
  margin-bottom: 0.35rem;
}
.tips-score-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.tips-score-hint {
  font-size: 0.90rem;
  color: var(--text-muted);
}

/* Rewards tips nudge */
.rewards-tips-nudge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(34,214,122,0.06);
  border: 1px solid rgba(34,214,122,0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1.00rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.rewards-tips-nudge.rewards-tips-nudge-empty {
  background: var(--bg-card);
  border-color: var(--border);
}
.rewards-tips-nudge strong {
  color: var(--text-primary);
}
.rewards-tips-link {
  margin-left: auto;
  color: var(--accent-green);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  font-size: 1.00rem;
}

/* ─── TIP CELEBRATIONS ──────────────────────────────────────────────────────── */

/* Minimal check indicator on right side for adopted tips */
.tip-stamp {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  display: none;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  background: var(--accent-green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Static state for already-flagged cards — show subtle check badge */
.tip-flagged .tip-stamp {
  display: flex;
  opacity: 1;
}

/* Animate class — subtle pop-in (not used now but kept for compatibility) */
@keyframes stamp-slam {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.8); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.tip-stamp.stamp-animate {
  animation: stamp-slam 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Confetti particles */
@keyframes confetti-fly {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  80%  { opacity: 0.9; }
  100% { transform: translate(var(--cf-dx), var(--cf-dy)) rotate(var(--cf-rot)) scale(0.2); opacity: 0; }
}
.confetti-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fly var(--cf-dur, 0.65s) ease-out var(--cf-delay, 0s) forwards;
}

/* Saving badge pop */
@keyframes badge-pop {
  0%   { transform: scale(1);    box-shadow: none; }
  40%  { transform: scale(1.28); box-shadow: 0 0 14px rgba(34,214,122,0.55); }
  70%  { transform: scale(0.94); }
  100% { transform: scale(1);    box-shadow: none; }
}
.tip-saving-badge.badge-pop {
  display: inline-block;
  animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Savings-amount glow during count-up */
@keyframes amount-glow {
  0%   { color: var(--accent-green); text-shadow: none; transform: scale(1); }
  45%  { color: #5dffb5; text-shadow: 0 0 14px rgba(34,214,122,0.65); transform: scale(1.06); }
  100% { color: var(--accent-green); text-shadow: none; transform: scale(1); }
}
.tips-savings-amount.amount-glow {
  display: inline-block;
  animation: amount-glow 0.65s ease forwards;
}

/* Badge-unlock toast (slides in from top) */
.badge-unlock-toast {
  position: fixed;
  top: -130px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0e1f14, #152b1e);
  border: 1.5px solid #22d67a;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 275px;
  max-width: 340px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55), 0 0 24px rgba(34,214,122,0.18);
  z-index: 10000;
  transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-unlock-toast.show { top: 14px; }
.badge-unlock-icon { font-size: 2.1rem; flex-shrink: 0; }
.badge-unlock-text { flex: 1; min-width: 0; }
.badge-unlock-label {
  font-size: 0.92rem;
  color: #22d67a;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.badge-unlock-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.badge-unlock-desc {
  font-size: 0.90rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.08rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PHASE 5: ENERGY BILLS PAGE + PERSONALIZED TIPS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Override parent padding when bills page is shown (bills-page handles its own height) */
.page:has(.bills-page) {
  padding-bottom: 0;
}

/* ── Bills Page Layout ─────────────────────────────────────────────────────── */
.bills-page {
  display: flex;
  flex-direction: column;
  /* Fit within viewport: header ~50px + container padding 16px + bottom nav ~80px + safe area */
  max-height: calc(100svh - 146px - env(safe-area-inset-bottom, 0px));
  padding: 0;
  overflow-y: auto;
}
.bills-header {
  padding: 1rem 1rem 0.25rem;
  flex-shrink: 0;
}
.bills-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.2rem;
}
.bills-header p {
  font-size: 1.02rem;
  color: #64748b;
  margin: 0;
}
.bills-date { color: #94a3b8; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.bills-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(34,214,122,0.15);
  border-top-color: #22d67a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bills-loading-state {
  padding: 3rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.tips-loading-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.tips-mini-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(34,214,122,0.2);
  border-top-color: #22d67a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── Bill Upload Benefits ─────────────────────────────────────────────────── */
.bill-upload-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 1rem 1rem;
}
.bill-upload-benefits:empty {
  display: none;
}
.bill-benefit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #94a3b8;
}
.bill-benefit-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Bill Upload Zone ─────────────────────────────────────────────────────── */
.bill-upload-zone {
  margin: 0 1rem 0.75rem;
  border: 2px dashed rgba(34,214,122,0.3);
  border-radius: 16px;
  background: rgba(34,214,122,0.03);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.bill-upload-zone.dragover {
  border-color: #22d67a;
  background: rgba(34,214,122,0.08);
}
.bill-upload-zone.bill-uploading {
  border-style: solid;
  border-color: rgba(34,214,122,0.4);
}
.bill-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.bill-upload-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.4rem;
}
.bill-upload-sub {
  font-size: 1.00rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.bill-upload-actions {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.bill-upload-btn {
  background: linear-gradient(135deg, #22d67a, #4ade80);
  color: #0a0e17;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  display: block;
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}
.bill-upload-btn:active { opacity: 0.85; transform: scale(0.98); }
.bill-upload-hint {
  font-size: 0.88rem;
  color: #475569;
}

/* ── Bill Error Message ────────────────────────────────────────────────────── */
.bill-error-msg {
  margin: 0 1rem 1rem;
  padding: 0.75rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  font-size: 1.02rem;
  color: #fca5a5;
}

/* ── Bill Multi-Page Pending Zone ─────────────────────────────────────────── */
.bill-pending-zone {
  margin: 0 1rem 1rem;
  padding: 1rem;
  background: rgba(34,214,122,0.04);
  border: 1.5px dashed rgba(34,214,122,0.3);
  border-radius: 16px;
}
.bill-pending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.bill-pending-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #22d67a;
}
.bill-pending-hint {
  font-size: 0.88rem;
  color: #64748b;
}
.bill-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.bill-thumb-wrapper {
  position: relative;
  width: 72px;
  flex-shrink: 0;
}
.bill-thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid rgba(148,163,184,0.2);
  display: block;
}
.bill-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.bill-thumb-label {
  text-align: center;
  font-size: 0.92rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.bill-thumb-add {
  width: 72px;
  height: 96px;
  border: 1.5px dashed rgba(34,214,122,0.4);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.25rem;
  transition: background 0.2s;
}
.bill-thumb-add:active { background: rgba(34,214,122,0.06); }
.bill-thumb-add-icon {
  font-size: 1.4rem;
  color: #22d67a;
  line-height: 1;
}
.bill-thumb-add-label {
  font-size: 0.92rem;
  color: #64748b;
}
.bill-analyze-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #22d67a, #4ade80);
  color: #0f172a;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s, transform 0.15s;
}
.bill-analyze-btn:active { opacity: 0.85; transform: scale(0.98); }
.bill-clear-pages-btn {
  width: 100%;
  padding: 0.55rem;
  background: transparent;
  border: none;
  font-size: 0.92rem;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Bill Sample Section ───────────────────────────────────────────────────── */
.bill-sample-section {
  margin: 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(148,163,184,0.03);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: 12px;
  flex-shrink: 0;
}
.bill-sample-title {
  font-size: 0.90rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 0.75rem;
}
.bill-sample-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.bill-sample-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.00rem;
  color: #94a3b8;
}

/* ── Bill Card (results) ───────────────────────────────────────────────────── */
.bill-card {
  margin: 0.75rem 1rem;
  background: rgba(17,24,39,0.6);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 16px;
  overflow: hidden;
}
.bill-card-header {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(148,163,184,0.08);
}
.bill-card-provider {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.bill-provider-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.bill-provider-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}
.bill-tariff-type {
  font-size: 0.92rem;
  color: #64748b;
  margin-top: 0.1rem;
}
.bill-tariff-flag {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tariff-flag-red   { background: rgba(239,68,68,0.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.tariff-flag-amber { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.tariff-flag-green { background: rgba(34,214,122,0.1);  color: #4ade80; border: 1px solid rgba(34,214,122,0.2); }

.bill-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.bill-stat {
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(148,163,184,0.06);
  border-bottom: 1px solid rgba(148,163,184,0.06);
}
.bill-stat:nth-child(2), .bill-stat:nth-child(4) { border-right: none; }
.bill-stat:nth-child(3), .bill-stat:nth-child(4) { border-bottom: none; }
.bill-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}
.bill-stat-label {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.bill-period-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(148,163,184,0.06);
}
.bill-period-label {
  font-size: 0.72rem;
  color: #64748b;
}
.bill-period-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

/* ── Tariff Analysis Section ───────────────────────────────────────────────── */
.bill-analysis-section {
  margin: 0 1rem 0.75rem;
}
.bill-analysis-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin: 0.75rem 0 0.4rem;
}
.bill-analysis-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
}
.bill-analysis-card.tariff-flag-red   { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15); }
.bill-analysis-card.tariff-flag-amber { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.15); }
.bill-analysis-card.tariff-flag-green { background: rgba(34,214,122,0.04); border: 1px solid rgba(34,214,122,0.12); }
.bill-analysis-icon { font-size: 1.2rem; flex-shrink: 0; }
.bill-analysis-text { font-size: 0.85rem; color: #cbd5e1; line-height: 1.5; }
.bill-analysis-text strong { color: #f1f5f9; }

/* ── Energy Switching Teaser ───────────────────────────────────────────────── */
.bill-switching-card {
  position: relative;
  margin: 0 1rem 0.75rem;
  background: linear-gradient(135deg, rgba(34,214,122,0.06), rgba(74,222,128,0.03));
  border: 1px solid rgba(34,214,122,0.2);
  border-radius: 16px;
  overflow: hidden;
  padding: 1.25rem 1rem;
}
.bill-switching-glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(34,214,122,0.15), transparent 60%);
  pointer-events: none;
}
.bill-switching-content { position: relative; }
.bill-switching-top { margin-bottom: 0.6rem; }
.bill-switching-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(34,214,122,0.1);
  color: #22d67a;
  border: 1px solid rgba(34,214,122,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.bill-switching-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.bill-switching-amount {
  color: #22d67a;
}
.bill-switching-sub {
  font-size: 1.00rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
.bill-switching-coming {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.coming-soon-chip {
  font-size: 1.00rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(148,163,184,0.1);
  color: #64748b;
  border: 1px solid rgba(148,163,184,0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.bill-switching-coming-text {
  font-size: 0.92rem;
  color: #64748b;
}

/* ── Bill Detailed Breakdown ───────────────────────────────────────────────── */
.bill-breakdown-section {
  margin: 0 1rem 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.1);
  background: rgba(15,23,42,0.4);
}
.bill-breakdown-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.65rem 1rem 0.4rem;
}
.bill-breakdown-table {
  display: flex;
  flex-direction: column;
}
.bill-breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.48rem 1rem;
  border-top: 1px solid rgba(148,163,184,0.06);
  gap: 0.5rem;
}
.bill-breakdown-row:first-child { border-top: none; }
.bill-breakdown-label {
  font-size: 1.00rem;
  color: #94a3b8;
  flex: 1;
  min-width: 0;
}
.bill-breakdown-sub {
  display: block;
  font-size: 0.88rem;
  color: #475569;
  margin-top: 0.1rem;
}
.bill-breakdown-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}
.bill-breakdown-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
}
.bill-breakdown-iva .bill-breakdown-label,
.bill-breakdown-iva .bill-breakdown-amount {
  color: #64748b;
}
.bill-breakdown-total {
  background: rgba(148,163,184,0.04);
  border-top: 1px solid rgba(148,163,184,0.12) !important;
}
.bill-breakdown-total .bill-breakdown-label {
  font-weight: 700;
  color: #cbd5e1;
}
.bill-breakdown-total .bill-breakdown-amount {
  color: #22d67a;
  font-size: 1rem;
}
/* Fascia badges */
.fascia-badge {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.fascia-f1 { background: rgba(239,68,68,0.15); color: #f87171; }
.fascia-f2 { background: rgba(245,158,11,0.15); color: #fbbf24; }
.fascia-f3 { background: rgba(34,214,122,0.12); color: #22d67a; }

/* ── Bills Actions ─────────────────────────────────────────────────────────── */
.bills-actions {
  display: flex;
  gap: 0.65rem;
  margin: 0.75rem 1rem 0;
}
.bill-reupload-btn {
  flex: 1;
  padding: 0.7rem;
  background: rgba(34,214,122,0.08);
  border: 1px solid rgba(34,214,122,0.2);
  border-radius: 10px;
  color: #22d67a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.bill-reupload-btn:active { background: rgba(34,214,122,0.14); }
.bill-delete-btn {
  padding: 0.7rem 1rem;
  background: rgba(148,163,184,0.06);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 10px;
  color: #64748b;
  font-size: 1.00rem;
  cursor: pointer;
  transition: background 0.2s;
}
.bill-delete-btn:active { background: rgba(239,68,68,0.08); color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════════════════════
   PERSONALIZED TIPS UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Personalized Tips Banner ─────────────────────────────────────────────── */
.tips-personalized-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 1rem 0.75rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, rgba(34,214,122,0.06), rgba(99,102,241,0.04));
  border: 1px solid rgba(34,214,122,0.15);
  border-radius: 12px;
}
.tips-personalized-icon { font-size: 1.3rem; flex-shrink: 0; }
.tips-personalized-text { flex: 1; min-width: 0; }
.tips-personalized-label {
  font-size: 1.02rem;
  font-weight: 700;
  color: #22d67a;
  margin-bottom: 0.05rem;
}
.tips-personalized-sub {
  font-size: 0.90rem;
  color: #64748b;
}
.tips-refresh-btn {
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(34,214,122,0.1);
  color: #22d67a;
  border: 1px solid rgba(34,214,122,0.2);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Generate Tips Banner ─────────────────────────────────────────────────── */
.tips-generate-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 1rem 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(34,214,122,0.04);
  border: 1px dashed rgba(34,214,122,0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.tips-generate-banner:active { background: rgba(34,214,122,0.08); }
.tips-generate-icon { font-size: 1.3rem; flex-shrink: 0; }
.tips-generate-text { flex: 1; min-width: 0; }
.tips-generate-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.05rem;
}
.tips-generate-sub {
  font-size: 0.76rem;
  color: #64748b;
}
.tips-generate-arrow {
  font-size: 1.1rem;
  color: #22d67a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ── Personalized Tip Card Extras ─────────────────────────────────────────── */
.tip-personalized {
  border-left: 3px solid rgba(34,214,122,0.3);
}
.tip-category-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.tip-cat-habit   { background: rgba(99,102,241,0.1);  color: #a5b4fc; }
.tip-cat-setting { background: rgba(34,214,122,0.1);  color: #4ade80; }
.tip-cat-upgrade { background: rgba(245,158,11,0.1);  color: #fcd34d; }
.tip-cat-schedule { background: rgba(14,165,233,0.1); color: #7dd3fc; }

/* ── Tips Bill CTA ─────────────────────────────────────────────────────────── */
.tips-bill-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  background: rgba(148,163,184,0.04);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.tips-bill-cta:active { background: rgba(148,163,184,0.08); }
.tips-bill-cta-icon { font-size: 1.4rem; flex-shrink: 0; }
.tips-bill-cta-text { flex: 1; min-width: 0; }
.tips-bill-cta-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.1rem;
}
.tips-bill-cta-sub {
  font-size: 0.90rem;
  color: #64748b;
}
.tips-bill-cta-arrow {
  font-size: 1rem;
  color: #64748b;
  flex-shrink: 0;
}

/* ─── HOME KPI GRID ─────────────────────────────────────────────────────────── */
.home-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.home-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.home-kpi-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.05rem;
}

.home-kpi-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* Score KPI gets a subtle left accent based on grade */
.home-kpi-card.kpi-score.grade-a { border-left: 3px solid #22c55e; }
.home-kpi-card.kpi-score.grade-b { border-left: 3px solid #84cc16; }
.home-kpi-card.kpi-score.grade-c { border-left: 3px solid #f59e0b; }
.home-kpi-card.kpi-score.grade-d { border-left: 3px solid #ef4444; }

/* Cost KPI */
.home-kpi-card.kpi-cost .home-kpi-value { color: #f87171; }
/* Cost KPI — bill-based: upgrade to a teal accent and show a subtle top border */
.home-kpi-card.kpi-cost.kpi-cost--bill { border-top: 2px solid #06b6d4; }
.home-kpi-card.kpi-cost.kpi-cost--bill .home-kpi-value { color: #22d3ee; }
.home-kpi-card.kpi-cost.kpi-cost--bill .home-kpi-sub { color: #06b6d4; }
/* Savings KPI */
.home-kpi-card.kpi-savings .home-kpi-value { color: var(--accent-green); }
/* Count KPI */
.home-kpi-card.kpi-count .home-kpi-value { color: #a5b4fc; }
/* Score page — annual cost stat when bill-based */
.score-stat--bill .score-stat-val { color: #22d3ee; }

/* ─── FLAT APPLIANCE LIST ────────────────────────────────────────────────────── */
.flat-appliance-section {
  margin-bottom: 0.75rem;
}

.flat-section-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.flat-row {
  border-bottom: 1px solid rgba(148,163,184,0.06);
  transition: background 0.15s;
}

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

.flat-row-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
}

.flat-row.flat-row-expanded {
  background: rgba(34,214,122,0.04);
  border-radius: var(--radius-sm);
  padding: 0 0.5rem;
}

.flat-row-icon {
  font-size: 1.3rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.flat-row-icon.dim { opacity: 0.35; }

.flat-row-body {
  flex: 1;
  min-width: 0;
}

.flat-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flat-row-name.dim { color: var(--text-muted); font-weight: 400; }

.flat-row-detail {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flat-row-detail.muted { font-style: italic; }

.flat-row-savings {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.flat-row-savings.savings-pos  { color: var(--accent-green); }
.flat-row-savings.savings-neutral { color: var(--accent-amber); }

.flat-row-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

/* Scan button on unscanned rows */
.flat-row-scan-btn {
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  border: 1px solid rgba(34,214,122,0.3);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}

.flat-row-scan-btn:hover { background: rgba(34,214,122,0.2); }
.flat-row-scan-btn:active { opacity: 0.7; }

/* Lightning bolt economics mini button */
.btn-eco-mini {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.btn-eco-mini:hover { color: var(--accent-amber); background: rgba(245,158,11,0.1); }
.btn-eco-mini.active { color: var(--accent-amber); }

/* Edit button inline on flat row */
.flat-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  color: var(--text-muted);
  padding: 0.25rem;
  border-radius: 6px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}

.flat-edit-btn:hover { opacity: 1; color: var(--accent-green); }

/* Remove/hide ✕ button */
.flat-row-remove,
.flat-row-hide {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.2rem 0.3rem;
  border-radius: 50%;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.flat-row-remove:hover { opacity: 1; color: #ef4444; background: rgba(239,68,68,0.12); }
.flat-row-hide:hover   { opacity: 0.7; color: var(--text-secondary); }

/* ─── TAPPABLE ROW ───────────────────────────────────────────────────────────── */
.flat-row-tappable {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.flat-row-tappable:active {
  background: rgba(34,214,122,0.07);
}

.flat-row-chevron {
  font-size: 0.88rem;
  color: var(--text-muted);
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.2s;
  display: inline-block;
  line-height: 1;
}
.flat-row-chevron.chevron-open {
  transform: rotate(180deg);
  opacity: 0.9;
  color: var(--accent-green);
}

/* ─── INLINE DETAIL CARD (accordion) ────────────────────────────────────────── */
.detail-card {
  margin: 0 0 0.75rem;
  animation: detailSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes detailSlideIn {
  from { opacity: 0; transform: translateY(-6px) scaleY(0.97); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* Current appliance summary block */
.detail-current {
  background: rgba(148,163,184,0.06);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.85rem;
}
.detail-current-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.detail-current-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.detail-current-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.detail-current-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.det-class-badge {
  font-size: 0.68rem !important;
  padding: 0.15rem 0.4rem !important;
}
.detail-current-stats {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.det-stat-chip {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(148,163,184,0.1);
  border-radius: 12px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}
.det-stat-cost {
  color: var(--accent-amber);
  background: rgba(245,158,11,0.1);
}

/* Alternatives header */
.detail-alts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.detail-alts-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}
.detail-alts-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.detail-no-alts {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
  font-style: italic;
}

/* ─── DET-ALT CARD (per-product alternative) ────────────────────────────────── */
.det-alt-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(148,163,184,0.1);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.15s, background 0.15s;
}
.det-alt-card:last-child { margin-bottom: 0; }
.det-alt-card:hover {
  border-color: rgba(34,214,122,0.22);
  background: rgba(34,214,122,0.025);
}

/* Alt card: image + info row */
.det-alt-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.det-alt-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(34,214,122,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.det-alt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.det-alt-img.det-alt-img-fallback {
  background: linear-gradient(135deg, rgba(34,214,122,0.1), rgba(34,214,122,0.04));
}
.det-alt-img.det-alt-img-fallback::after {
  content: '🔌';
  font-size: 1.6rem;
}
.det-alt-info {
  flex: 1;
  min-width: 0;
}
.det-alt-brand {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.det-alt-model {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}
.det-alt-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.det-savings-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(34,214,122,0.12);
  border: 1px solid rgba(34,214,122,0.25);
  border-radius: 12px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.det-alt-kwh {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Installment slider section */
.det-alt-slider-section {
  background: rgba(148,163,184,0.05);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.7rem;
}
.det-alt-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.det-alt-slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.det-alt-monthly-badge {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-green);
}
.det-alt-monthly-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}
.det-alt-slider-track {
  padding: 0.15rem 0;
  margin-bottom: 0.4rem;
}
/* Reuse bnpl-range styles via shared class + custom property */
.det-alt-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent-green) 0%,
    var(--accent-green) var(--fill-pct, 40%),
    rgba(148,163,184,0.15) var(--fill-pct, 40%),
    rgba(148,163,184,0.15) 100%
  );
  outline: none;
  cursor: pointer;
}
.det-alt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid #0f172a;
  box-shadow: 0 0 0 3px rgba(34,214,122,0.25);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.det-alt-range::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 6px rgba(34,214,122,0.2);
}
.det-alt-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid #0f172a;
  cursor: pointer;
}
.det-alt-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 0.1rem;
}
.det-alt-tick {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.15s, font-weight 0.15s;
}
.det-tick-sel {
  color: var(--accent-green);
  font-weight: 700;
}

/* CTA button */
.det-alt-cta {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  color: #0a0f1c;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(34,214,122,0.25);
}
.det-alt-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,214,122,0.35);
}
.det-alt-cta:active {
  transform: scale(0.98);
  opacity: 0.85;
}
.det-alt-cta .cta-arrow {
  margin-left: 0.3rem;
}

/* ─── ADD APPLIANCE ROW ──────────────────────────────────────────────────────── */
.add-appliance-row {
  padding: 0.5rem 0 1.5rem;
}

.add-appliance-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: none;
  border: 1px dashed rgba(148,163,184,0.25);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.add-appliance-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: var(--accent-green-dim);
}

/* ─── ADD APPLIANCE MODAL CHIPS ──────────────────────────────────────────────── */
.add-appliance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.add-appliance-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.add-appliance-chip:hover {
  border-color: var(--accent-green);
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

/* ─── IN-APP CHATBOT ───────────────────────────────────────────────────────── */

/* Floating chat button */
.chat-fab {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom) + 12px);
  right: max(calc(50vw - 260px + 12px), 12px);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-active);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 18px rgba(34, 214, 122, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--accent-green);
}
.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(34, 214, 122, 0.38);
}
.chat-fab svg { pointer-events: none; }

/* Unread badge on FAB */
.chat-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  display: none;
}
.chat-fab-badge.visible { display: block; }

/* Chat panel overlay */
.chat-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.55);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.chat-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Chat panel itself */
.chat-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 520px;
  height: min(640px, 90vh);
  background: #0d1420;
  border-top: 1px solid var(--border-active);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  z-index: 400;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.chat-panel.open {
  transform: translateX(-50%) translateY(0);
}

/* Chat panel header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-green-dim);
  border: 1.5px solid var(--border-active);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}
.chat-header-status {
  font-size: 0.72rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.chat-header-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}
.chat-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(148,163,184,0.08);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.15s;
  flex-shrink: 0;
}
.chat-close-btn:hover { background: rgba(148,163,184,0.15); }

/* FAQ chips row */
.chat-faq-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.chat-faq-row::-webkit-scrollbar { display: none; }
.chat-faq-chip {
  white-space: nowrap;
  background: rgba(34,214,122,0.07);
  border: 1px solid rgba(34,214,122,0.22);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-green);
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}
.chat-faq-chip:hover {
  background: rgba(34,214,122,0.14);
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,0.15) transparent;
}

/* Message bubbles */
.chat-bubble-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 90%;
}
.chat-bubble-wrap.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-bubble-wrap.bot { align-self: flex-start; }

.chat-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-bubble strong { color: var(--accent-green); }
.chat-bubble-wrap.user .chat-bubble {
  background: var(--accent-green);
  color: #050a10;
  border-radius: 16px 16px 4px 16px;
  font-weight: 500;
}
.chat-bubble-wrap.bot .chat-bubble {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.55rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chatTypingDot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Suggestion chips below bot message */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.chat-suggestion-chip {
  background: rgba(34,214,122,0.06);
  border: 1px solid rgba(34,214,122,0.2);
  border-radius: 14px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.chat-suggestion-chip:hover {
  background: rgba(34,214,122,0.12);
  color: var(--accent-green);
}

/* Input bar */
.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #0d1420;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(148,163,184,0.06);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s;
  overflow-y: auto;
}
.chat-input:focus { border-color: rgba(34,214,122,0.35); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn {
  width: 42px;
  height: 42px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: #050a10;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.chat-send-btn:hover { opacity: 0.88; transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ─── HOME ENERGY SCORE HERO ──────────────────────────────────────────────── */
.home-score-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.1rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.home-score-hero:hover { background: var(--bg-card-hover); }

/* Color accent on left border based on numeric score */
.home-score-hero--green { border-left: 4px solid #22d67a; }
.home-score-hero--yellow { border-left: 4px solid #f59e0b; }
.home-score-hero--red { border-left: 4px solid #ef4444; }

/* Ring fill color variants (numeric-based, not A-G based) */
.home-score-ring-fill--green { stroke: #22d67a; }
.home-score-ring-fill--yellow { stroke: #f59e0b; }
.home-score-ring-fill--red { stroke: #ef4444; }
.home-score-ring-fill { transition: stroke-dasharray 0.9s ease; }

/* Ring container — relative so inner text can be absolute */
.home-score-ring-container {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
}
.home-score-ring {
  display: block;
}

/* Inner text centered over the ring */
.home-score-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.home-score-ring-inner--sm {
  /* used for locked state */
}

.home-score-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.home-score-of {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Right column info */
.home-score-info {
  flex: 1;
  min-width: 0;
}
.home-score-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.home-score-insight {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0.4rem 0 0.35rem;
}
.home-score-cta {
  font-size: 0.80rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Locked state (< 3 appliances) */
.home-score-locked {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.home-score-locked-left {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.home-score-locked-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.home-score-locked-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0.3rem 0 0.5rem;
}
.home-score-locked-bar {
  height: 5px;
  background: rgba(148,163,184,0.12);
  border-radius: 10px;
  overflow: hidden;
  max-width: 160px;
}
.home-score-locked-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ========= LIVE CAMERA VIEWFINDER ========= */
.camera-viewfinder-container {
  position: relative;
  width: 100%;
  /* Use svh (small viewport) to avoid iOS 100vh bug where browser chrome is excluded.
     Subtract: header ~50px + bottom-nav ~80px + margins ~60px + safe-area */
  height: calc(100vh - 270px);                                      /* fallback */
  height: calc(100svh - 190px - env(safe-area-inset-bottom, 0px));  /* modern  */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#camera-viewfinder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Instruction overlay ON TOP of the live camera feed */
.camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: cameraOverlayIn 0.3s ease-out;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
}

.camera-overlay--fade {
  opacity: 0;
}

.camera-overlay-text {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(10, 14, 23, 0.85);
  border-radius: 14px;
  max-width: 88%;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

/* Capture (shutter) button */
.camera-viewfinder-controls {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.camera-shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.camera-shutter-btn:active {
  transform: scale(0.9);
}

.camera-shutter-inner {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  transition: background 0.15s ease;
}

.camera-shutter-btn:active .camera-shutter-inner {
  background: var(--accent-green);
}

/* Secondary actions below shutter */
.camera-secondary-actions {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  z-index: 20;
  padding: 0 1rem;
}

.camera-secondary-actions .upload-btn--secondary {
  flex: 1;
  max-width: 180px;
  padding: 0.6rem 0.5rem;
  font-size: 0.82rem;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  text-align: center;
}

/* ──────────────────────────────────────────────────────────────────────────── */
/* MINIMAL BILL CARD REDESIGN */
/* ──────────────────────────────────────────────────────────────────────────── */

.bill-card-minimal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  margin-bottom: 2rem;
}

.bill-minimal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.bill-minimal-provider {
  display: flex;
  gap: 1rem;
  flex: 1;
  align-items: center;
}

.bill-minimal-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(34, 214, 122, 0.1);
  border-radius: var(--radius-sm);
}

.bill-minimal-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.bill-minimal-tariff {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.bill-minimal-flag {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.bill-minimal-flag.tariff-flag-green {
  background: rgba(34, 214, 122, 0.15);
  color: var(--accent-green);
}

.bill-minimal-flag.tariff-flag-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.bill-minimal-flag.tariff-flag-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

/* Core stats: 4 essential numbers */
.bill-minimal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 500px) {
  .bill-minimal-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}

.bill-minimal-stat {
  text-align: center;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border);
}

.bill-minimal-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.bill-minimal-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────────────────── */
/* PROVIDER ALTERNATIVES SECTION */
/* ──────────────────────────────────────────────────────────────────────────── */

.bill-offerte-section {
  margin-bottom: 2rem;
}

.bill-offerte-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.9rem;
}

.bill-offerte-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .bill-offerte-cards {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.bill-offerte-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem 1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bill-offerte-card-best {
  border-color: var(--border-active);
  background: rgba(34, 214, 122, 0.04);
}

.bill-offerte-best-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-green);
  color: #0a0f1a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-bottom-left-radius: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bill-offerte-provider {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-right: 2.2rem; /* clear the Best badge */
  line-height: 1.2;
}

.bill-offerte-tariff {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bill-offerte-rate {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.bill-offerte-saving {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.offerte-saving-high { color: var(--accent-green); }
.offerte-saving-mid  { color: #4ade80; }
.offerte-saving-low  { color: var(--text-muted); }

.bill-offerte-good {
  font-size: 0.95rem;
  color: var(--accent-green);
  padding: 0.9rem 1rem;
  background: rgba(34, 214, 122, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-active);
  text-align: center;
  margin-bottom: 0.6rem;
}

.bill-offerte-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.65;
  margin-top: 0.7rem;
  text-align: center;
}

/* Global font size increases for all tabs */
h1 {
  font-size: 2.1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

button, .btn-share, .bottom-nav-item {
  font-size: 1.1rem;
}

.app-nav-brand {
  font-size: 1.4rem \!important;
}

.home-kpi-value {
  font-size: 2.4rem;
}

.home-kpi-label {
  font-size: 1rem;
}

.home-score-number {
  font-size: 2.8rem;
}

.home-score-title {
  font-size: 1.2rem;
}

.page {
  padding-bottom: 120px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* MINIMAL FINTECH AUTH PAGE REDESIGN (Revolut/N26 inspired)                  */
/* ─────────────────────────────────────────────────────────────────────────── */

.account-page-minimal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem 1.5rem 1.5rem;
  gap: 3rem;
}

.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.auth-logo svg {
  filter: drop-shadow(0 8px 24px rgba(34, 214, 122, 0.15));
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.auth-form-section {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-email-input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.auth-email-input::placeholder {
  color: var(--text-muted);
}

.auth-email-input:hover {
  border-color: var(--border-active);
}

.auth-email-input:focus {
  border-color: var(--accent-green);
  background: rgba(34, 214, 122, 0.04);
}

.auth-continue-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-radius: 12px;
  background: var(--accent-green);
  color: #0a0e17;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-continue-btn:hover {
  background: #1da869;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(34, 214, 122, 0.25);
}

.auth-continue-btn:active {
  transform: translateY(0);
}

.auth-footer {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.auth-secondary-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  padding: 1.5rem 0 1rem;
}

.auth-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid rgba(34, 214, 122, 0.25);
  border-radius: 10px;
  background: rgba(34, 214, 122, 0.08);
  color: var(--accent-green);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.auth-link-btn:hover {
  background: rgba(34, 214, 122, 0.16);
  border-color: rgba(34, 214, 122, 0.4);
}

.auth-link-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Mobile optimization */
@media (max-width: 480px) {
  .account-page-minimal {
    padding: 1.5rem 1rem 1rem;
    gap: 2.5rem;
  }

  .auth-title {
    font-size: 2rem;
  }

  .auth-tagline {
    font-size: 0.95rem;
  }

  .auth-form-section {
    max-width: 100%;
  }

  .auth-email-input {
    font-size: 1rem;
  }
}

