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

:root {
  --bg: #0a0e27;
  --surface: #131836;
  --surface2: #1a2044;
  --accent: #00b4d8;
  --accent2: #0077b6;
  --green: #00c853;
  --green-bg: rgba(0,200,83,0.12);
  --red: #ff5252;
  --red-bg: rgba(255,82,82,0.12);
  --orange: #ffab40;
  --orange-bg: rgba(255,171,64,0.12);
  --text: #e8eaf6;
  --text2: #9098b8;
  --border: #232a4a;
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#app {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px;
  padding-top: var(--safe-top);
  padding-bottom: calc(24px + var(--safe-bottom));
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.progress-wrap {
  padding: 12px 0 20px;
}

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.p-step span {
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
}

.p-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  transition: all 0.3s;
}

.p-step.active .p-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(0,180,216,0.4);
}

.p-step.done .p-dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.screen {
  display: none;
  animation: fadeUp 0.3s ease;
}

.screen.active {
  display: block;
}

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

.hero {
  text-align: center;
  padding: 32px 0 24px;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,119,182,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.screen-header {
  margin-bottom: 24px;
}

.screen-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.screen-header p {
  color: var(--text2);
  font-size: 14px;
}

.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border 0.2s;
  -webkit-appearance: none;
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

.input-group input::placeholder {
  color: #555c80;
}

.btn-main {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(0,180,216,0.25);
}

.btn-main:active {
  transform: scale(0.98);
}

.btn-main:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.btn-next {
  margin-top: 20px;
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #009624);
  box-shadow: 0 4px 16px rgba(0,200,83,0.25);
}

.items-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  animation: fadeUp 0.25s ease;
}

.item-row .item-name {
  font-size: 14px;
  font-weight: 600;
}

.item-row .item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}

.camera-zone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.camera-zone span {
  color: var(--text2);
  font-size: 14px;
}

.camera-zone:active {
  border-color: var(--accent);
  background: rgba(0,180,216,0.05);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.thumb-grid img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.finding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  animation: fadeUp 0.25s ease;
}

.finding-card h4 {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}

.finding-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.4;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  animation: fadeUp 0.3s ease;
}

.result-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.result-card .price {
  font-size: 20px;
  font-weight: 800;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.tag-green { background: var(--green-bg); color: var(--green); }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-orange { background: var(--orange-bg); color: var(--orange); }

.result-detail {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

.recent-section {
  margin-top: 20px;
}

.recent-section h3 {
  font-size: 14px;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: 10px;
}

.recent-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.recent-item span {
  font-size: 13px;
  color: var(--text2);
}

.recent-item strong {
  font-size: 13px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,39,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(6px);
}

.loader-wrap {
  text-align: center;
}

.loader {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

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

.loader-wrap p {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.hidden { display: none !important; }

.services-showcase {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.showcase-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text2);
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.showcase-card:active {
  transform: scale(0.98);
}

.showcase-img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.showcase-info {
  padding: 10px 12px;
}

.showcase-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.showcase-info p {
  font-size: 10.5px;
  color: var(--text2);
  line-height: 1.35;
}

.quick-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.qf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.qf-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}

.select-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239098b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

.detect-section {
  margin-top: 16px;
}

.detect-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--text2);
  font-size: 13px;
}

.detect-divider::before,
.detect-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.detect-divider span {
  padding: 0 12px;
}

.btn-detect {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(0,180,216,0.05);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-detect:active {
  background: rgba(0,180,216,0.12);
}

.detect-result {
  margin-top: 14px;
}

.detect-card {
  background: var(--surface);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius);
  padding: 16px;
}

.detect-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.detect-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.detect-work {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 8px;
}

.detect-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.detect-issue-tag {
  padding: 3px 10px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.detect-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.detect-cat {
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,180,216,0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.detect-condition {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.detect-cond-good { background: var(--green-bg); color: var(--green); }
.detect-cond-fair { background: var(--orange-bg); color: var(--orange); }
.detect-cond-poor { background: var(--red-bg); color: var(--red); }
.detect-cond-critical { background: rgba(255,23,68,0.15); color: #ff1744; }

.btn-use-detection {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.quotes-section {
  margin-bottom: 14px;
}

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

.quotes-header label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

.btn-small {
  padding: 6px 14px;
  background: rgba(0,180,216,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quote-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.quote-row input:focus {
  border-color: var(--accent);
}

.quote-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,82,82,0.3);
  background: rgba(255,82,82,0.1);
  color: var(--red);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-cat {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(0,180,216,0.12);
  color: var(--accent);
  border-radius: 12px;
  font-weight: 600;
}

.item-quotes {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(124,77,255,0.12);
  color: #7c4dff;
  border-radius: 12px;
  font-weight: 600;
}

.risk-gauge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.risk-gauge-card h3 {
  font-size: 14px;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.gauge-container {
  max-width: 200px;
  margin: 0 auto;
}

.gauge-svg {
  width: 100%;
  height: auto;
}

.rec-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.result-card-header h4 {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}

.mini-score {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 10px;
}

.rec-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.estimate-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.est-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}

.est-value {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.quotes-comparison {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(124,77,255,0.08);
  border: 1px solid rgba(124,77,255,0.2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

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

.finding-header h4 {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.condition-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 20px;
}

.finding-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 6px;
}

.finding-work {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 8px;
}

.finding-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.issue-tag {
  padding: 3px 10px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.finding-materials {
  font-size: 11px;
  color: var(--text2);
}

.btn-property {
  background: linear-gradient(135deg, #7c4dff, #536dfe);
  box-shadow: 0 4px 16px rgba(124,77,255,0.25);
}

.prop-items-section {
  margin-top: 16px;
  margin-bottom: 8px;
}

.prop-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.prop-item-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.prop-item-row input:focus {
  border-color: var(--accent);
}

.report-mode-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.report-mode-badge.photo-mode {
  background: rgba(0, 180, 216, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 180, 216, 0.3);
}
.report-mode-badge.text-mode {
  background: rgba(255, 171, 64, 0.15);
  color: #ffab40;
  border: 1px solid rgba(255, 171, 64, 0.3);
}

.prop-condition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 14px;
}

.prop-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.prop-score-ring .score-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.prop-score-ring .score-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}

.prop-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.prop-summary-card h3 {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prop-summary-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.prop-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prop-section-title .count-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.repair-card {
  background: var(--surface);
  border-left: 4px solid;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.repair-card.major {
  border-left-color: var(--red);
}

.repair-card.minor {
  border-left-color: var(--orange);
}

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

.repair-header h4 {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.repair-urgency {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.repair-urgency.immediate {
  background: var(--red-bg);
  color: var(--red);
}

.repair-urgency.soon {
  background: var(--orange-bg);
  color: var(--orange);
}

.repair-urgency.routine {
  background: rgba(0,180,216,0.12);
  color: var(--accent);
}

.repair-cost {
  font-size: 12px;
  color: var(--text2);
}

.repair-cat {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(0,180,216,0.1);
  color: var(--accent);
  border-radius: 12px;
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
}

.spending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}

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

.spending-header h4 {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.spending-verdict {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.spending-verdict.fair,
.spending-verdict.reasonable {
  background: var(--green-bg);
  color: var(--green);
}

.spending-verdict.overspending {
  background: var(--red-bg);
  color: var(--red);
}

.spending-verdict.underspending {
  background: rgba(0,180,216,0.12);
  color: var(--accent);
}

.spending-detail {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
}

.spending-bar-wrap {
  margin-top: 8px;
  background: var(--border);
  border-radius: 6px;
  height: 8px;
  position: relative;
  overflow: hidden;
}

.spending-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.comparison-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.comparison-card p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
}

.priority-list {
  list-style: none;
  padding: 0;
}

.priority-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.priority-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.prop-total-card {
  background: linear-gradient(135deg, rgba(0,180,216,0.1), rgba(0,119,182,0.08));
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.prop-total-card .total-label {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.prop-total-card .total-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.safety-hazards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.safety-tag {
  padding: 4px 12px;
  background: rgba(255,23,68,0.12);
  color: #ff1744;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.welcome-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.welcome-svc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s;
}
.welcome-svc-card:hover, .welcome-svc-card:active {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.svc-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-icon-wrap.svc-green { background: rgba(0,200,83,0.12); color: var(--green); }
.svc-icon-wrap.svc-blue { background: rgba(0,180,216,0.12); color: var(--accent); }
.svc-icon-wrap.svc-purple { background: rgba(124,77,255,0.12); color: #7c4dff; }
.svc-icon-wrap.svc-orange { background: rgba(255,171,64,0.12); color: var(--orange); }

.svc-text {
  flex: 1;
  min-width: 0;
}
.svc-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.svc-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.3;
}
.svc-arrow {
  flex-shrink: 0;
  color: var(--text2);
  opacity: 0.5;
}

.quick-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.quick-verdict-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.quick-verdict-ring .qv-emoji {
  font-size: 2rem;
  line-height: 1;
}
.quick-verdict-ring .qv-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.quick-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.quick-price-compare {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
}
.quick-price-col {
  text-align: center;
}
.quick-price-col .qp-label {
  font-size: 0.7rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.quick-price-col .qp-value {
  font-size: 1.3rem;
  font-weight: 800;
}

.quick-savings-bar {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}
.quick-savings-bar.saving {
  background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.2);
  color: var(--green);
}
.quick-savings-bar.overpaying {
  background: rgba(255,82,82,0.1);
  border: 1px solid rgba(255,82,82,0.2);
  color: var(--red);
}
.quick-savings-bar.neutral {
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.2);
  color: var(--accent);
}

.quick-explanation {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 12px 0;
}

.quick-tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(255,171,64,0.08);
  border: 1px solid rgba(255,171,64,0.15);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--orange);
  text-align: left;
}

.quick-market-range {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface2);
  border-radius: 12px;
}
.quick-market-range .qmr-label {
  font-size: 0.75rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.quick-range-bar {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: visible;
}
.quick-range-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 4px;
}
.quick-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 6px;
}

.quick-another-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 28px;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.2);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.quick-another-btn:hover {
  background: rgba(0,180,216,0.2);
}

.how-prove-it {
  margin-bottom: 20px;
}
.hpi-title {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.hpi-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hpi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 72px;
}
.hpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hpi-icon.hpi-green { background: rgba(0,200,83,0.12); color: var(--green); }
.hpi-icon.hpi-blue { background: rgba(0,180,216,0.12); color: var(--accent); }
.hpi-icon.hpi-purple { background: rgba(124,77,255,0.12); color: #7c4dff; }
.hpi-icon.hpi-orange { background: rgba(255,171,64,0.12); color: var(--orange); }
.hpi-icon.hpi-red { background: rgba(255,82,82,0.12); color: var(--red); }
.hpi-label {
  font-size: 0.65rem;
  color: var(--text2);
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
}
.hpi-connector {
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  margin: 0 2px;
  margin-bottom: 22px;
  border-radius: 1px;
}
.hpi-detail-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.hpi-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.hpi-detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.hpi-detail-text {
  flex: 1;
  min-width: 0;
}
.hpi-detail-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}
.hpi-detail-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.4;
}
.hpi-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}
.hpi-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,180,216,0.3);
}

.gen-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.gen-verdict-ring {
  width: 100px;
  height: 100px;
  border: 4px solid;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.gen-v-emoji { font-size: 28px; line-height: 1; }
.gen-v-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.gen-report-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.gen-report-type { font-size: 0.8rem; color: var(--text2); margin-bottom: 16px; }
.gen-accuracy-bar { margin-bottom: 16px; }
.gen-acc-label { font-size: 0.75rem; color: var(--text2); margin-bottom: 6px; }
.gen-acc-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.gen-acc-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
}
.gen-acc-value { font-size: 0.85rem; font-weight: 700; }
.gen-amounts {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0;
}
.gen-amount-col { text-align: center; }
.gen-amount-label { font-size: 0.72rem; color: var(--text2); margin-bottom: 4px; }
.gen-amount-value { font-size: 1.2rem; font-weight: 700; }
.gen-overcharge {
  background: rgba(255,82,82,0.1);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0;
}
.gen-summary {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 12px;
}
.gen-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.gen-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.gen-line-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gen-line-item:last-child { border-bottom: none; }
.gen-li-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.gen-li-desc { font-size: 0.85rem; font-weight: 600; }
.gen-li-status { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.gen-li-amounts {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text2);
}
.gen-li-note {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 4px;
  font-style: italic;
}
.gen-flag-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.gen-flag-item.red {
  background: rgba(255,82,82,0.08);
  color: var(--red);
}
.gen-flag-item.green {
  background: rgba(0,200,83,0.08);
  color: var(--green);
}
.gen-flag-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.gen-rec-item {
  padding: 8px 12px;
  background: rgba(0,180,216,0.06);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 6px;
}
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}
textarea:focus { border-color: var(--accent); }
textarea::placeholder { color: var(--text2); }

@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .quick-features { grid-template-columns: 1fr; }
}

.human-analyst-section {
  margin-top: 24px;
  text-align: center;
}

.ha-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ha-divider::before,
.ha-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.ha-divider span {
  font-size: 0.8rem;
  color: var(--text2);
  white-space: nowrap;
}

.ha-request-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,119,182,0.15));
  border: 1.5px solid rgba(0,180,216,0.35);
  border-radius: 14px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.ha-request-btn:hover {
  background: linear-gradient(135deg, rgba(0,180,216,0.25), rgba(0,119,182,0.25));
  border-color: var(--accent);
  transform: translateY(-1px);
}

.ha-subtitle {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 8px;
  line-height: 1.4;
}

.ha-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.ha-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.ha-modal-header {
  text-align: center;
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.ha-modal-header h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 10px 0 4px;
}

.ha-modal-header p {
  color: var(--text2);
  font-size: 0.85rem;
}

.ha-modal-body {
  padding: 20px;
}

.ha-modal-body .input-group {
  margin-bottom: 14px;
}

.ha-modal-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
}

.ha-cancel-btn {
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text2);
  font-size: 0.9rem;
  cursor: pointer;
}

.ha-submit-btn {
  flex: 2;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ha-submit-btn:hover {
  opacity: 0.9;
}

.ha-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
