@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface2: #f5f5f4;
  --accent: #6366f1;
  --accent2: #4f46e5;
  --green: #10b981;
  --green-bg: rgba(16,185,129,0.08);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.08);
  --orange: #f59e0b;
  --orange-bg: rgba(245,158,11,0.08);
  --text: #1c1917;
  --text2: #78716c;
  --border: #e7e5e4;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

html { height: 100%; }

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

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px;
  padding-top: var(--safe-top);
  padding-bottom: calc(28px + var(--safe-bottom));
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,249,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1.5px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--border), transparent) 1;
  margin-bottom: 6px;
}

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

.nav-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1), color 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav-btn:hover {
  background: var(--surface2);
  color: var(--accent);
}

.progress-wrap {
  padding: 14px 0 22px;
}

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

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

.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.35s cubic-bezier(0.4,0,0.2,1);
}

.p-step.active .p-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,0.4);
}

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

.screen {
  display: none;
  animation: fadeUp 0.35s cubic-bezier(0.4,0,0.2,1);
}

.screen.active {
  display: block;
}

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

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

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
  color: var(--text);
}

.hero-sub {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: 16px;
}

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

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
  -webkit-appearance: none;
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.input-group input::placeholder {
  color: #a8a29e;
}

.btn-main {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35), 0 1px 3px rgba(0,0,0,0.1);
}
.btn-main:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

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

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

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

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

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

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  animation: fadeUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

.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: 2.5px dashed var(--border);
  border-radius: 22px;
  padding: 48px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}

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

.camera-zone:active, .camera-zone.drag-over {
  border-color: var(--accent);
  background: rgba(99,102,241,0.04);
}

.camera-zone .drop-hint {
  display: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.camera-zone.drag-over .drop-hint { display: block; }
.camera-zone.drag-over > svg, .camera-zone.drag-over > span:not(.drop-hint) { opacity: 0.3; }

.photo-count {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.btn-add-more {
  display: block;
  margin: 12px auto 0;
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  border: 1px dashed var(--accent);
  padding: 9px 20px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}

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

.thumb-wrap {
  position: relative;
}

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

.thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red, #ff5252);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

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

.analysis-progress {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--text2);
  transition: color 0.3s cubic-bezier(0.4,0,0.2,1);
}

.progress-step.active {
  color: var(--accent);
  font-weight: 600;
}

.progress-step.done {
  color: var(--green, #00c853);
}

.progress-step .step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.progress-step .step-icon.pending { background: var(--border); }
.progress-step.active .step-icon { background: rgba(99,102,241,0.2); animation: pulse 1.5s infinite; }
.progress-step.done .step-icon { background: rgba(16,185,129,0.2); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.finding-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  margin-top: 12px;
  animation: fadeUp 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.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: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  animation: fadeUp 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.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: 5px 14px;
  border-radius: 24px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.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: 12px;
  margin-top: 4px;
}

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

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

.recent-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

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

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.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: 26px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--border);
}

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

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

.showcase-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s cubic-bezier(0.4,0,0.2,1);
}

.showcase-card:active {
  border-color: var(--accent);
}

.showcase-img {
  display: none;
}

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

.showcase-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

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

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

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

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

.select-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px 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='%2378716c' 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;
  transition: border 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.select-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

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

.detect-divider {
  display: flex;
  align-items: center;
  margin: 18px 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 14px;
}

.btn-detect {
  width: 100%;
  padding: 15px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(99,102,241,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.25s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
}

.btn-detect:active {
  background: rgba(99,102,241,0.12);
}

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

.detect-card {
  background: var(--surface);
  border: 1.5px solid rgba(99,102,241,0.3);
  border-radius: var(--radius);
  padding: 18px;
}

.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: 24px;
  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(99,102,241,0.1);
  padding: 3px 10px;
  border-radius: 24px;
  font-weight: 600;
}

.detect-condition {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 24px;
  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(239,68,68,0.15); color: #ef4444; }

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

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

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

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

.btn-small {
  padding: 6px 14px;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  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: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

.quote-remove {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,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(99,102,241,0.12);
  color: var(--accent);
  border-radius: 12px;
  font-weight: 600;
}

.item-quotes {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(139,92,246,0.12);
  color: #8b5cf6;
  border-radius: 12px;
  font-weight: 600;
}

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

.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: 24px;
  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: 24px;
  font-size: 11px;
  font-weight: 700;
}

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

.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: 12px 16px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  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: 24px;
}

.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: 24px;
  font-size: 10px;
  font-weight: 600;
}

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

.btn-property {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 4px 16px rgba(139,92,246,0.25);
}

.prop-items-section {
  margin-top: 18px;
  margin-bottom: 10px;
}

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

.prop-item-row input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

.report-mode-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.report-mode-badge.photo-mode {
  background: rgba(99,102,241,0.15);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.3);
}
.report-mode-badge.text-mode {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
}

.prop-condition-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  margin-bottom: 16px;
}

.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: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}

.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: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.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(99,102,241,0.12);
  color: var(--accent);
}

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

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

.spending-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.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(99,102,241,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 cubic-bezier(0.4,0,0.2,1);
}

.comparison-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.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: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  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(99,102,241,0.1), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}

.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(239,68,68,0.12);
  color: #ef4444;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
}

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

.svc-card-v2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.svc-card-v2:hover, .svc-card-v2:active {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99,102,241,0.1);
}
.svc-v2-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.svc-v2-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-v2-icon.svc-green { background: rgba(16,185,129,0.08); color: var(--green); }
.svc-v2-icon.svc-blue { background: rgba(99,102,241,0.08); color: var(--accent); }
.svc-v2-icon.svc-purple { background: rgba(139,92,246,0.08); color: #8b5cf6; }
.svc-v2-icon.svc-orange { background: rgba(245,158,11,0.08); color: var(--orange); }
.svc-v2-icon.svc-red { background: rgba(239,68,68,0.08); color: var(--red); }
.svc-v2-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
}
.svc-v2-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--text2);
  font-weight: 500;
}
.svc-v2-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}
.svc-v2-features li {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}
.svc-v2-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}
.svc-v2-cta {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}
.svc-card-v2:hover .svc-v2-cta { gap: 10px; }

.quick-result-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 30px 22px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.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: 13px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}
.quick-savings-bar.saving {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
}
.quick-savings-bar.overpaying {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red);
}
.quick-savings-bar.neutral {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,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: 14px;
  padding: 14px 18px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: 14px;
  font-size: 0.85rem;
  color: var(--orange);
  text-align: left;
}

.quick-shop-links {
  margin-top: 18px;
  padding: 18px;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 16px;
}
.qsl-label {
  font-size: 0.82rem;
  color: var(--text2);
  margin-bottom: 10px;
  font-weight: 500;
}
.qsl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qsl-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
}
.qsl-btn:active { transform: scale(0.96); }
.qsl-amazon { background: #FF9900; color: #111; }
.qsl-walmart { background: #0071DC; }
.qsl-google { background: #4285F4; }
.qsl-ebay { background: #E53238; }
.qsl-target { background: #CC0000; }

.quick-market-range {
  margin-top: 18px;
  padding: 16px;
  background: var(--surface2);
  border-radius: 14px;
}
.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: 18px;
  padding: 13px 30px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.quick-another-btn:hover {
  background: rgba(99,102,241,0.2);
}

.how-prove-it {
  margin-bottom: 22px;
}
.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(16,185,129,0.12); color: var(--green); }
.hpi-icon.hpi-blue { background: rgba(99,102,241,0.12); color: var(--accent); }
.hpi-icon.hpi-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.hpi-icon.hpi-orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.hpi-icon.hpi-red { background: rgba(239,68,68,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: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
}
.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: 15px 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 cubic-bezier(0.4,0,0.2,1);
}
.hpi-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.gen-result-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 30px 22px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.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: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.gen-acc-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.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(239,68,68,0.1);
  color: var(--red);
  padding: 12px 16px;
  border-radius: 14px;
  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: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 14px;
}
.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 var(--border);
}
.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: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.gen-flag-item.red {
  background: rgba(239,68,68,0.08);
  color: var(--red);
}
.gen-flag-item.green {
  background: rgba(16,185,129,0.08);
  color: var(--green);
}
.gen-flag-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.gen-rec-item {
  padding: 10px 14px;
  background: rgba(99,102,241,0.06);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 6px;
}
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); }
textarea::placeholder { color: var(--text2); }

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

.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: 15px 22px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 1.5px solid rgba(99,102,241,0.35);
  border-radius: 16px;
  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.25s cubic-bezier(0.4,0,0.2,1);
}

.ha-request-btn:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));
  border-color: var(--accent);
  transform: translateY(-2px);
}

.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.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: 24px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0,0,0,0.15);
}

.ha-modal-header {
  text-align: center;
  padding: 26px 22px 18px;
  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: 22px;
}

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

.ha-modal-actions {
  display: flex;
  gap: 10px;
  padding: 18px 22px 22px;
}

.ha-cancel-btn {
  flex: 1;
  padding: 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text2);
  font-size: 0.9rem;
  cursor: pointer;
}

.ha-submit-btn {
  flex: 2;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 14px;
  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;
}

.svc-teal { background: rgba(99,102,241,0.08); color: var(--accent); }

.compare-proposal-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
}

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

.cpc-header h3 {
  margin: 0;
  color: var(--text1);
  font-size: 16px;
}

.cmp-items-wrap {
  margin-top: 8px;
}

.cmp-items-wrap label {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px;
  display: block;
}

.cmp-item-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.cmp-item-row input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text1);
  font-size: 13px;
}

.cmp-add-item-btn {
  background: none;
  border: 1px dashed var(--accent);
  color: var(--accent);
  border-radius: 10px;
  padding: 7px 16px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.compare-winner-card {
  background: var(--card);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  border: 1.5px solid var(--border);
  margin-bottom: 18px;
}

.cw-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.compare-matrix-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin: 8px 0;
  border: 1.5px solid var(--border);
}

.btn-secondary {
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text1);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--surface2);
}

.history-filter-bar {
  margin-bottom: 18px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  animation: fadeUp 0.3s cubic-bezier(0.4,0,0.2,1);
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.history-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.history-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.history-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.history-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.history-date {
  font-size: 11px;
  color: var(--text2);
}

.history-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.history-confidence {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 12px;
}

.history-view-btn {
  padding: 6px 16px;
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1);
}

.history-view-btn:active {
  background: rgba(99,102,241,0.2);
}

.history-followup-btn {
  padding: 5px 12px;
  background: rgba(245,158,11,0.1);
  color: var(--orange);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.history-followup-btn:active {
  background: rgba(245,158,11,0.2);
}

.history-detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.history-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 10px;
  margin-top: 6px;
  font-size: 13px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  animation: fadeUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

.dash-stat-card.dash-stat-primary {
  grid-column: 1 / -1;
  text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  border-color: rgba(99,102,241,0.2);
}

.dash-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
}

.dash-section {
  margin-bottom: 18px;
}

.dash-usage-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.dash-usage-card h3 {
  font-size: 13px;
  color: var(--text2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

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

.dash-usage-item {
  text-align: center;
  padding: 14px 10px;
  background: var(--surface2);
  border-radius: 12px;
}

.dash-usage-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.dash-usage-label {
  font-size: 11px;
  color: var(--text2);
  font-weight: 600;
}

.dash-plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

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

.dash-plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.dash-plan-usage {
  font-size: 13px;
  color: var(--text2);
}

.follow-up-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.follow-up-content {
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 26px 22px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

.follow-up-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.follow-up-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.follow-up-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 380px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-usage-grid {
    grid-template-columns: 1fr;
  }
  .history-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .history-card-right {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
  }
}

/* Industry Selector */
.industry-selector {
  margin-bottom: 22px;
}
.industry-pick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.industry-pick-btn:hover, .industry-pick-btn:active {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}
.industry-pick-icon { font-size: 1.2rem; }
.industry-pick-arrow { font-size: 0.65rem; opacity: 0.5; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.industry-dropdown {
  margin-top: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
.industry-search {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  font-size: 0.9rem;
  outline: none;
  background: var(--surface2);
  box-sizing: border-box;
  color: var(--text);
}
.industry-search:focus {
  background: var(--surface);
}
.industry-grid {
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.industry-group {
  border-bottom: 1px solid var(--border);
}
.industry-group:last-child {
  border-bottom: none;
}
.industry-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: var(--surface2);
  border: none;
  cursor: pointer;
  transition: background 0.2s cubic-bezier(0.4,0,0.2,1);
  text-align: left;
}
.industry-group-header:hover {
  background: rgba(99,102,241,0.06);
}
.industry-group-header.open {
  background: rgba(99,102,241,0.08);
}
.ig-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ig-icon {
  font-size: 1.2rem;
}
.ig-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.ig-count {
  font-size: 0.7rem;
  background: var(--border);
  color: var(--text2);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.ig-arrow {
  font-size: 0.6rem;
  color: var(--text2);
}
.industry-group-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 14px 14px;
}
@media (min-width: 480px) {
  .industry-group-items {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .industry-group-items {
    grid-template-columns: repeat(4, 1fr);
  }
}
.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid #e7e5e4;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
}
.industry-card:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.04);
}
.industry-card.selected {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.industry-card-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.industry-card-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.industry-selected-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.industry-selected-bar .industry-sel-icon {
  font-size: 1.2rem;
}
.industry-change-btn {
  background: none;
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.industry-change-btn:hover {
  background: var(--accent);
  color: #fff;
}
.smart-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.73rem;
  color: var(--accent);
  background: rgba(99,102,241,0.05);
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.vai-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto;
  padding: 6px 14px;
  background: rgba(99,102,241,0.08);
  border-radius: 24px;
  width: fit-content;
}
.vai-badge-text {
  font-size: 12px;
  font-weight: 600;
}

.savings-tracker-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(99,102,241,0.08));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text1);
}

.btn-negotiation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}
.btn-negotiation:active {
  transform: scale(0.97);
}

.neg-section {
  margin-bottom: 18px;
}
.neg-section strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
}
.neg-section p {
  font-size: 13px;
  color: var(--text1);
  line-height: 1.5;
}
.neg-point {
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text1);
  line-height: 1.4;
}
.neg-script {
  padding: 14px;
  background: var(--surface2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text1);
  line-height: 1.6;
  white-space: pre-wrap;
}

.partner-deal-btn {
  flex: 1;
  min-width: 90px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s cubic-bezier(0.4,0,0.2,1);
}
.partner-deal-btn:active {
  opacity: 0.85;
}

.pe-overall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--surface2);
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.pe-overall-score {
  font-size: 22px;
  font-weight: 700;
}
.pe-category {
  padding: 12px;
  background: var(--surface2);
  border-radius: 10px;
  margin-bottom: 8px;
}
.pe-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
}
.pe-cat-score {
  font-weight: 700;
}
.pe-cat-bar {
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.pe-cat-note {
  font-size: 11px;
  color: var(--text2);
  margin: 0;
  line-height: 1.4;
}

.btn-small {
  padding: 5px 12px;
  font-size: 12px;
  background: var(--surface2);
  color: var(--text1);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0 0 22px;
}
@media (min-width: 600px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}
.plan-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  position: relative;
  text-align: center;
}
.plan-pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-badge-pop {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 4px;
}
.plan-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
}
.plan-features {
  list-style: none;
  text-align: left;
  padding: 0;
  margin-bottom: 16px;
}
.plan-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text1);
  border-bottom: 1px solid var(--border);
}
.plan-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}
.plan-coming-soon {
  padding: 13px;
  background: var(--surface2);
  border-radius: 12px;
  color: var(--text2);
  font-weight: 600;
  font-size: 14px;
}

.review-form-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.review-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-header strong {
  font-size: 14px;
  color: var(--text1);
}
.review-stars {
  color: #fbbf24;
  font-size: 14px;
}
.review-text {
  font-size: 13px;
  color: var(--text1);
  margin: 0 0 6px;
  line-height: 1.4;
}
.review-meta {
  font-size: 11px;
  color: var(--text2);
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}
.alert-inactive {
  opacity: 0.5;
}
.alert-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.alert-item-info strong {
  font-size: 14px;
  color: var(--text1);
}
.alert-item-info span {
  font-size: 12px;
  color: var(--text2);
}
.alert-date {
  font-size: 11px;
}
.alert-item-actions {
  display: flex;
  gap: 6px;
}
.alert-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-section {
  margin-top: 26px;
  padding: 0 4px;
}
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.trust-badge strong {
  font-size: 0.88rem;
  color: var(--text);
  display: block;
}
.trust-badge span {
  font-size: 0.78rem;
  color: var(--text2);
}
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  padding: 16px 0;
}
.trust-stat {
  text-align: center;
}
.trust-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.trust-stat span {
  font-size: 0.75rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-quick-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 0 4px;
}
.home-link-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1);
}
.home-link-btn:active {
  background: var(--surface2);
}

.nav-btn {
  position: relative;
}

.btn-enhanced-photo {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
}

.overlay-steps {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 280px;
}
.overlay-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.35s cubic-bezier(0.4,0,0.2,1);
}
.overlay-step.active {
  color: #fff;
  font-weight: 600;
}
.overlay-step.done {
  color: rgba(16,185,129,0.9);
}
.overlay-step-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.overlay-step.active .overlay-step-icon::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.overlay-progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 18px auto 0;
  overflow: hidden;
}
.overlay-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  font-size: 14px;
  color: var(--text);
  animation: toast-in 0.35s cubic-bezier(0.4,0,0.2,1);
  min-width: 240px;
}
.toast.toast-error {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}
.toast.toast-success {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.08);
}
.toast.toast-info {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
}
.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.toast-msg {
  flex: 1;
  line-height: 1.4;
}
.toast-close {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  flex-shrink: 0;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.toast-out {
  animation: toast-out 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 480px) {
  .toast-container {
    left: 8px;
    right: 8px;
    max-width: none;
  }
  .toast {
    min-width: auto;
  }
  .overlay-steps {
    max-width: 240px;
  }
  .compare-proposal-card {
    padding: 14px;
  }
  .compare-matrix-card {
    padding: 12px;
  }
  .screen-header h2 {
    font-size: 1.3rem;
  }
  .input-group input, .select-input, textarea {
    font-size: 16px;
    padding: 12px 14px;
  }
  .btn-main {
    padding: 13px;
    font-size: 15px;
    min-height: 48px;
  }
  .camera-zone {
    padding: 32px 18px;
  }
  .hpi-flow {
    gap: 4px;
  }
  .hpi-step {
    min-width: 60px;
  }
  .hpi-label {
    font-size: 11px;
  }
  .nav-btn {
    width: 40px;
    height: 40px;
  }
  .showcase-card {
    padding: 16px;
  }
  .result-card {
    padding: 16px;
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .industry-item {
    padding: 10px 8px;
    font-size: 0.78rem;
  }
}

@media (max-width: 340px) {
  #app {
    padding: 0 12px;
  }
  .hero h1 {
    font-size: 20px;
  }
  .hero p {
    font-size: 0.85rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .btn-main {
    font-size: 14px;
    padding: 12px;
  }
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.settings-section {
  margin-bottom: 18px;
}
.settings-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.settings-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border-radius: 18px;
}
.settings-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.settings-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.settings-card {
  background: var(--surface2);
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid var(--border);
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.settings-link-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1);
}
.settings-link-btn:hover {
  background: rgba(99,102,241,0.06);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d6d3d1;
  border-radius: 24px;
  transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: default;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1);
}
.notif-unread {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
}
.notif-read {
  background: var(--surface2);
  border: 1px solid var(--border);
  opacity: 0.7;
}
.notif-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.notif-message {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
  line-height: 1.4;
}
.notif-time {
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
  opacity: 0.7;
}
.notif-mark-read {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
}
.notif-mark-read:hover {
  background: rgba(99,102,241,0.1);
}

.review-card-new {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.review-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.review-helpful-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.onboarding-card {
  background: var(--surface);
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.15);
}
.onboarding-progress {
  height: 4px;
  background: var(--border);
}
.onboarding-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}
.onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px 26px;
}

.star-rating {
  display: flex;
  gap: 4px;
}

@media (max-width: 480px) {
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .settings-row select,
  .settings-row input[type="text"],
  .settings-row input[type="number"] {
    max-width: 100% !important;
    width: 100%;
  }
}

.greeting-section {
  text-align: center;
  padding: 36px 0 26px;
}
.greeting-hello {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--text);
  line-height: 1.3;
}
.greeting-sub {
  color: var(--text2);
  font-size: 14px;
  margin-top: 6px;
}
.greeting-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.06));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.services-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.svc-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  text-align: left;
}
.svc-compact:hover, .svc-compact:active {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  transform: translateY(-2px);
}
.svc-compact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-compact-icon.svc-green { background: rgba(16,185,129,0.1); color: var(--green); }
.svc-compact-icon.svc-blue { background: rgba(99,102,241,0.1); color: var(--accent); }
.svc-compact-icon.svc-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.svc-compact-icon.svc-orange { background: rgba(245,158,11,0.1); color: var(--orange); }
.svc-compact-icon.svc-red { background: rgba(239,68,68,0.1); color: var(--red); }
.svc-compact-icon.svc-teal { background: rgba(13,148,136,0.1); color: #0d9488; }
.svc-compact-text {
  flex: 1;
  min-width: 0;
}
.svc-compact-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.svc-compact-tagline {
  font-size: 12.5px;
  color: var(--text2);
  display: block;
  margin-top: 2px;
}
.svc-compact-arrow {
  color: var(--text2);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.svc-compact:hover .svc-compact-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 10px;
  margin-top: 30px;
}

.marketing-section {
  margin-top: 34px;
}
.marketing-section.hidden-marketing {
  display: none;
}

.recent-section-prominent {
  margin-top: 26px;
}
.recent-section-prominent h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 10px;
}

.hero-greeting {
  position: relative;
  padding: 32px 24px 28px;
  margin: 0 -4px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 40%, #7c3aed 70%, #a855f7 100%);
  overflow: hidden;
}
.hero-greeting-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  filter: blur(40px);
}
.hero-greeting-content {
  position: relative;
  z-index: 1;
}
.hero-greeting .greeting-hello {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.hero-greeting .greeting-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  font-weight: 500;
}

.svc-hub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.svc-hub-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.svc-hub-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(99,102,241,0.12), 0 2px 8px rgba(0,0,0,0.04);
}
.svc-hub-tile:active {
  transform: scale(0.985);
}
.svc-hub-tile.open {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
}
.svc-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-hub-info {
  flex: 1;
  min-width: 0;
}
.svc-hub-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.svc-hub-desc {
  display: block;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.3;
  margin-top: 2px;
}
.svc-hub-count {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.svc-hub-arrow {
  color: var(--text2);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.svc-hub-tile.open .svc-hub-arrow {
  transform: rotate(180deg);
}
.svc-hub-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, padding 0.35s ease;
  opacity: 0;
  padding: 0 4px;
}
.svc-hub-drawer.open {
  max-height: 500px;
  opacity: 1;
  padding: 4px 4px 8px;
}
.svc-category {
  margin-bottom: 26px;
}
.svc-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.svc-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-cat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.svc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.svc-card-v3 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  min-height: 100px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.svc-v3-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  border-radius: 16px 16px 0 0;
  opacity: 0.7;
  transition: opacity 0.28s cubic-bezier(0.4,0,0.2,1);
}
.svc-card-v3:hover .svc-v3-accent,
.svc-card-v3:active .svc-v3-accent {
  opacity: 1;
}
.svc-card-v3:hover,
.svc-card-v3:active {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
}
.svc-v3-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-v3-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.2;
}
.svc-v3-tag {
  font-size: 12px;
  color: var(--text2);
  display: block;
  line-height: 1.3;
}

@media (max-width: 380px) {
  .svc-card-grid {
    grid-template-columns: 1fr;
  }
  .svc-card-v3 {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 14px;
  }
  .svc-v3-title, .svc-v3-tag {
    text-align: left;
  }
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin-bottom: 8px;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

[data-theme="dark"] {
  --bg: #0c0a09;
  --surface: #1c1917;
  --surface2: #292524;
  --accent: #818cf8;
  --accent2: #a78bfa;
  --green: #34d399;
  --green-bg: rgba(52,211,153,0.12);
  --red: #f87171;
  --red-bg: rgba(248,113,113,0.12);
  --orange: #fbbf24;
  --orange-bg: rgba(251,191,36,0.12);
  --text: #fafaf9;
  --text2: #a8a29e;
  --border: #292524;
}
[data-theme="dark"] .top-bar {
  background: rgba(12,10,9,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-image: linear-gradient(90deg, transparent, #292524, transparent) 1;
}
[data-theme="dark"] .nav-title {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .hero-greeting {
  background: linear-gradient(135deg, #1c1917 0%, #312e81 40%, #4f46e5 70%, #7c3aed 100%);
}
[data-theme="dark"] .svc-v3-icon {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .industry-pick-btn {
  background: #1c1917;
  border-color: #292524;
  color: #fafaf9;
}
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: #1c1917;
  border-color: #292524;
  color: #fafaf9;
}
[data-theme="dark"] .camera-zone {
  background: #1c1917;
  border-color: #292524;
}
[data-theme="dark"] .settings-profile-card {
  background: linear-gradient(135deg, #292524, #1c1917);
}
[data-theme="dark"] .onboarding-card {
  background: #1c1917;
}
[data-theme="dark"] .industry-card {
  background: #1c1917;
  border-color: #292524;
}
[data-theme="dark"] .industry-search {
  background: #292524;
  border-color: #292524;
  color: #fafaf9;
}
[data-theme="dark"] .industry-group-header {
  background: #292524;
}
[data-theme="dark"] .industry-group-header:hover {
  background: rgba(129,140,248,0.08);
}
[data-theme="dark"] .industry-group-header.open {
  background: rgba(129,140,248,0.12);
}
[data-theme="dark"] .ig-name {
  color: #fafaf9;
}
[data-theme="dark"] .industry-card-name {
  color: #fafaf9;
}
[data-theme="dark"] .scg-card {
  background: #1c1917;
  border-color: #292524;
}
[data-theme="dark"] .iip-wrapper {
  background: #1c1917;
  border-color: #292524;
}
[data-theme="dark"] .iip-toggle {
  background: linear-gradient(135deg, #292524, #1c1917);
}
[data-theme="dark"] .iip-tabs {
  background: #1c1917;
  border-color: #292524;
}
[data-theme="dark"] .gen-line-item {
  border-bottom-color: #292524;
}

.voice-input-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-input-btn:hover {
  background: var(--surface2);
  color: var(--accent);
}
.voice-input-btn.voice-active {
  color: var(--red);
  animation: voicePulse 1s ease infinite;
}
@keyframes voicePulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}
textarea ~ .voice-input-btn {
  top: 12px;
  transform: none;
}

.quick-actions-bar {
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
}
.qa-header {
  margin-bottom: 10px;
}
.qa-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
}
.qa-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qa-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
}
.qa-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.35);
}
.pin-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
  opacity: 0.5;
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}
.pin-btn:hover {
  opacity: 1;
}

.smart-recs {
  margin-top: 22px;
  padding: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
}
.smart-recs-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
  margin-bottom: 14px;
}
.smart-recs-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.smart-recs-grid::-webkit-scrollbar { display: none; }
.rec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 90px;
  padding: 14px 12px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.rec-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.1);
}
.rec-icon {
  font-size: 20px;
}
.rec-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}

.assistant-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(99,102,241,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.assistant-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
}
.assistant-fab.hidden { display: none; }

.assistant-panel {
  position: fixed;
  bottom: 90px;
  right: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 520px;
  background: var(--surface, #fff);
  border-radius: 24px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.18);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: assistantSlideUp 0.35s cubic-bezier(0.4,0,0.2,1);
}
.assistant-panel.hidden {
  display: none;
}
@keyframes assistantSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  color: #fff;
}
.assistant-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.assistant-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.assistant-header span {
  font-size: 11px;
  opacity: 0.7;
}
.assistant-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1);
}
.assistant-close-btn:hover { opacity: 1; }

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 340px;
}

.assistant-msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
}
.assistant-msg.bot { align-self: flex-start; }
.assistant-msg.user { align-self: flex-end; }

.assistant-msg-bubble {
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.assistant-msg.bot .assistant-msg-bubble {
  background: var(--surface2, #f5f5f4);
  color: var(--text, #1c1917);
  border-bottom-left-radius: 4px;
}
.assistant-msg.user .assistant-msg-bubble {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.assistant-msg-bubble em {
  color: #6366f1;
  font-style: italic;
}
.assistant-msg.user .assistant-msg-bubble em {
  color: #c4b5fd;
}

.assistant-rec-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  width: 100%;
  justify-content: center;
}
.assistant-rec-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99,102,241,0.3);
}

.assistant-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border, #e7e5e4);
  background: var(--surface, #fff);
}
.assistant-input-wrap input {
  flex: 1;
  border: 1.5px solid var(--border, #e7e5e4);
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 13px;
  background: var(--surface2, #f5f5f4);
  color: var(--text, #1c1917);
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.4,0,0.2,1);
}
.assistant-input-wrap input:focus {
  border-color: #6366f1;
}
.assistant-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.assistant-send-btn:hover {
  transform: scale(1.05);
}
.assistant-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.assistant-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.assistant-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8a29e;
  animation: typingBounce 1.4s infinite;
}
.assistant-typing span:nth-child(2) { animation-delay: 0.2s; }
.assistant-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@media (max-width: 480px) {
  .assistant-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 70vh;
    border-radius: 24px 24px 0 0;
  }
  .assistant-fab {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

.subcategory-guidance-panel {
  animation: fadeSlideIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
.scg-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.2s cubic-bezier(0.4,0,0.2,1);
}
.scg-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.scg-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.scg-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.scg-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.scg-list {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}
.scg-list li {
  position: relative;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
}
.scg-list li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
}
.scg-how .scg-list li::before {
  background: #10b981;
}
.scg-pricing-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}
.scg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scg-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(139,92,246,0.08);
  color: #7c3aed;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.scg-search-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scg-search-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(239,68,68,0.06);
  color: #ef4444;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.scg-search-link:hover {
  background: rgba(239,68,68,0.12);
}
.scg-search-link::before {
  content: "\1F50E";
  font-size: 11px;
}
@media (max-width: 480px) {
  .scg-card { padding: 12px; }
  .scg-list li { font-size: 12px; }
  .scg-pricing-text { font-size: 12px; }
  .scg-tag { font-size: 11px; padding: 3px 8px; }
  .scg-search-link { font-size: 11px; padding: 4px 8px; }
}

.industry-intel-panel {
  margin: 14px 0 18px;
}
.iip-wrapper {
  background: var(--surface);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.iip-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: none;
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.04) 100%);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1);
}
.iip-toggle:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.06) 100%);
}
.iip-toggle-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.iip-toggle-title {
  flex: 1;
}
.iip-chevron {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.iip-toggle[aria-expanded="true"] .iip-chevron {
  transform: rotate(180deg);
}
.iip-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.iip-body.iip-body-open {
  max-height: 800px;
  overflow-y: auto;
}
.iip-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1.5px solid var(--border);
  padding: 0 4px;
  background: var(--surface2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.iip-tabs::-webkit-scrollbar { display: none; }
.iip-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.iip-tab:hover {
  color: var(--accent);
  background: rgba(99,102,241,0.04);
}
.iip-tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.iip-tab-icon {
  font-size: 14px;
}
.iip-tab-label {
  font-size: 12px;
}
.iip-content {
  display: none;
  padding: 16px 18px;
}
.iip-content-active {
  display: block;
}
.iip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.iip-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
  padding-left: 30px;
}
.iip-list li::before {
  position: absolute;
  left: 8px;
  top: 11px;
  font-size: 12px;
}
.iip-list-flags li {
  background: rgba(239,68,68,0.06);
  border-left: 3px solid #ef4444;
}
.iip-list-flags li::before {
  content: "\26A0\FE0F";
}
.iip-list-scams li {
  background: rgba(239,68,68,0.06);
  border-left: 3px solid #ef4444;
}
.iip-list-scams li::before {
  content: "\1F6A8";
}
.iip-list-checks li {
  background: rgba(16,185,129,0.06);
  border-left: 3px solid #10b981;
}
.iip-list-checks li::before {
  content: "\2705";
}
.iip-list-tips li {
  background: rgba(99,102,241,0.06);
  border-left: 3px solid #6366f1;
}
.iip-list-tips li::before {
  content: "\1F4A1";
}
.iip-list-reg li {
  background: rgba(124,58,237,0.06);
  border-left: 3px solid #7c3aed;
}
.iip-list-reg li::before {
  content: "\2696\FE0F";
}
.iip-pricing-text,
.iip-seasonal-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  padding: 14px 16px;
  border-radius: 12px;
  margin: 0;
}
.iip-pricing-text {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(217,119,6,0.04));
  border-left: 3px solid #f59e0b;
}
.iip-seasonal-text {
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(13,148,136,0.04));
  border-left: 3px solid #0d9488;
}
@media (max-width: 480px) {
  .iip-toggle { padding: 14px 16px; font-size: 13px; }
  .iip-tab { padding: 9px 11px; font-size: 11px; }
  .iip-tab-icon { font-size: 12px; }
  .iip-list li { font-size: 12px; padding: 8px 12px 8px 28px; }
  .iip-pricing-text, .iip-seasonal-text { font-size: 12px; padding: 12px 14px; }
}

.home-testimonials { max-width: 600px; margin: 26px auto 0; padding: 0 16px; }
.home-testimonials h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.home-testimonials h3 .ht-icon { width: 30px; height: 30px; background: linear-gradient(135deg, #f59e0b, #f97316); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ht-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 18px; margin-bottom: 14px; position: relative; transition: border-color 0.25s cubic-bezier(0.4,0,0.2,1); }
.ht-card:hover { border-color: var(--accent); }
.ht-stars { color: #fbbf24; font-size: 11px; letter-spacing: 0.5px; margin-bottom: 8px; }
.ht-quote { font-size: 12.5px; color: var(--text2); line-height: 1.65; margin-bottom: 12px; }
.ht-highlight { background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06)); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 8px; font-size: 11px; color: var(--accent); font-weight: 500; }
.ht-meta { display: flex; align-items: center; gap: 10px; }
.ht-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.ht-info { flex: 1; }
.ht-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ht-role { font-size: 10.5px; color: var(--text2); }
.ht-savings { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 10px; padding: 3px 8px; font-size: 10.5px; font-weight: 700; color: #10b981; white-space: nowrap; }

.home-tutorials { max-width: 600px; margin: 26px auto 0; padding: 0 16px; }
.home-tutorials h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.home-tutorials h3 .ht-icon { width: 30px; height: 30px; background: linear-gradient(135deg, #6366f1, #7c3aed); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.htut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:480px) { .htut-grid { grid-template-columns: 1fr; } }
.htut-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), border-color 0.25s cubic-bezier(0.4,0,0.2,1); cursor: pointer; }
.htut-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.htut-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg), var(--surface2)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.htut-thumb-icon { font-size: 24px; opacity: 0.2; position: absolute; }
.htut-play { width: 38px; height: 38px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.htut-play svg { margin-left: 2px; }
.htut-dur { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.6); padding: 1px 6px; border-radius: 6px; font-size: 9px; color: #fff; font-weight: 600; }
.htut-body { padding: 12px 14px; }
.htut-title { font-size: 11.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.htut-desc { font-size: 10px; color: var(--text2); line-height: 1.4; }
.htut-tag { display: inline-block; font-size: 8.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.htut-tag-beginner { background: rgba(16,185,129,0.1); color: #10b981; }
.htut-tag-intermediate { background: rgba(245,158,11,0.1); color: #d97706; }
.htut-tag-advanced { background: rgba(99,102,241,0.1); color: #6366f1; }
.htut-coming { opacity: 0.45; pointer-events: none; position: relative; }
.htut-coming::after { content: 'COMING SOON'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 10px; border-radius: 8px; letter-spacing: 0.5px; z-index: 2; }

.video-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.25s cubic-bezier(0.4,0,0.2,1); }
.video-modal { background: #111; border-radius: 20px; overflow: hidden; max-width: 600px; width: 100%; position: relative; box-shadow: 0 25px 65px rgba(0,0,0,0.5); }
.video-modal-close { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.6); border: none; color: #fff; font-size: 24px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-modal-player { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.video-modal-actions { padding: 18px; text-align: center; }
.video-modal-try { background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; border: none; padding: 13px 30px; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1); }
.video-modal-try:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 8px rgba(99,102,241,0.4); } 50% { box-shadow: 0 0 20px rgba(99,102,241,0.8); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SMART VERIFY HOME REDESIGN ===== */
.sv-hero { position: relative; text-align: center; padding: 32px 20px 20px; border-radius: 20px; background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(124,58,237,0.06)); margin-bottom: 20px; overflow: hidden; }
.sv-hero-glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%); border-radius: 50%; pointer-events: none; }
.sv-hero-content { position: relative; z-index: 1; }
.sv-hero-title { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #6366f1, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 0 0 6px; line-height: 1.2; }
.sv-hero-sub { font-size: 15px; color: var(--text2); margin: 0; font-weight: 500; }
[data-theme="dark"] .sv-hero { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(124,58,237,0.08)); }

.sv-upload-area { max-width: 600px; margin: 0 auto 20px; }
.sv-upload-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.sv-upload-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; border-radius: 18px; background: var(--card); border: 2px dashed rgba(99,102,241,0.25); cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); gap: 10px; }
.sv-upload-card:hover { border-color: #6366f1; background: rgba(99,102,241,0.04); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.12); }
.sv-upload-card:active { transform: scale(0.97); }
.sv-upload-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.sv-upload-label { font-size: 16px; font-weight: 700; color: var(--text); }
.sv-upload-hint { font-size: 12px; color: var(--text2); }

.sv-file-preview { background: var(--card); border-radius: 16px; padding: 16px; border: 1px solid rgba(99,102,241,0.15); animation: fadeSlideIn 0.3s cubic-bezier(0.4,0,0.2,1); }
.sv-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sv-file-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15); padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--text); }
.sv-file-chip-remove { cursor: pointer; color: var(--text2); font-size: 14px; line-height: 1; padding: 0 2px; }
.sv-file-chip-remove:hover { color: #ef4444; }
.sv-add-more { background: none; border: 1px dashed rgba(99,102,241,0.3); color: var(--accent); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 10px; cursor: pointer; margin-bottom: 12px; transition: all 0.2s; }
.sv-add-more:hover { background: rgba(99,102,241,0.06); }
.sv-description { width: 100%; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-family: 'Inter', sans-serif; resize: none; background: var(--bg); color: var(--text); margin-bottom: 12px; box-sizing: border-box; }
.sv-description:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.sv-btn-verify { width: 100%; padding: 14px; background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.sv-btn-verify:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
.sv-btn-verify:active { transform: scale(0.98); }
.sv-btn-verify:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.sv-use-cases { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.sv-use-case { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.12); color: var(--text2); font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }

.sv-social-proof { text-align: center; margin-bottom: 28px; }
.sv-proof-text { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text2); }

.sv-testimonials { max-width: 600px; margin: 0 auto 24px; display: grid; gap: 12px; }
.sv-testimonial { background: var(--card); border-radius: 16px; padding: 16px; border: 1px solid rgba(0,0,0,0.06); }
.sv-test-quote { font-size: 13px; color: var(--text); line-height: 1.5; margin-bottom: 12px; font-style: italic; }
.sv-test-meta { display: flex; align-items: center; gap: 10px; }
.sv-test-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.sv-test-name { font-size: 12px; font-weight: 700; color: var(--text); }
.sv-test-role { font-size: 10.5px; color: var(--text2); }
.sv-test-saved { margin-left: auto; background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05)); color: #10b981; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }

.sv-browse-all { max-width: 600px; margin: 0 auto 32px; }
.sv-browse-toggle { width: 100%; background: var(--card); border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 14px; font-size: 14px; font-weight: 600; color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.sv-browse-toggle:hover { background: rgba(99,102,241,0.04); border-color: rgba(99,102,241,0.2); color: var(--accent); }

/* Smart verify results screen */
.sv-results-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.sv-back-btn { display: flex; align-items: center; gap: 4px; background: none; border: none; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 10px; border-radius: 10px; transition: background 0.2s; }
.sv-back-btn:hover { background: rgba(99,102,241,0.08); }
.sv-results-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.sv-results-content { max-width: 700px; margin: 0 auto; }

.sv-result-card { background: var(--card); border-radius: 18px; padding: 20px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,0.06); animation: fadeSlideIn 0.4s cubic-bezier(0.4,0,0.2,1); }
.sv-result-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sv-result-section { margin-bottom: 16px; }
.sv-result-section:last-child { margin-bottom: 0; }
.sv-result-section h4 { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sv-finding { padding: 12px; border-radius: 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.6; color: var(--text); }
.sv-finding-red { background: rgba(239,68,68,0.06); border-left: 3px solid #ef4444; }
.sv-finding-yellow { background: rgba(234,179,8,0.06); border-left: 3px solid #eab308; }
.sv-finding-green { background: rgba(16,185,129,0.06); border-left: 3px solid #10b981; }
.sv-finding-blue { background: rgba(99,102,241,0.06); border-left: 3px solid #6366f1; }
.sv-source-link { display: inline-flex; align-items: center; gap: 4px; color: #6366f1; font-size: 11.5px; font-weight: 600; text-decoration: none; margin-top: 4px; padding: 3px 8px; background: rgba(99,102,241,0.06); border-radius: 6px; }
.sv-source-link:hover { background: rgba(99,102,241,0.12); }

.sv-analyzing { text-align: center; padding: 48px 20px; }
.sv-analyzing-spinner { width: 48px; height: 48px; border: 3px solid rgba(99,102,241,0.15); border-top-color: #6366f1; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
.sv-analyzing-text { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.sv-analyzing-sub { font-size: 12px; color: var(--text2); }
@keyframes spin { to { transform: rotate(360deg); } }

.sv-verify-another { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; border: none; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 20px; transition: all 0.3s; }
.sv-verify-another:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }

/* Location bar */
.sv-location-bar { text-align: center; margin-bottom: 8px; }
.sv-location-detecting, .sv-location-found { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text2); padding: 4px 12px; border-radius: 20px; background: rgba(99,102,241,0.04); }
.sv-location-found { color: #10b981; background: rgba(16,185,129,0.06); }

/* ManageGo Integration Page */
.mg-page { padding: 0 16px 40px; max-width: 680px; margin: 0 auto; }
.mg-hero { text-align: center; padding: 32px 20px; background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(16,185,129,0.06)); border-radius: 20px; margin-bottom: 28px; }
.mg-hero-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #6366f1; background: rgba(99,102,241,0.1); padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; }
.mg-hero-logos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.mg-logo-box { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text); }
.mg-hero-title { font-size: 24px; font-weight: 800; color: var(--text); margin: 0 0 10px; line-height: 1.2; }
.mg-hero-sub { font-size: 14px; color: var(--text2); line-height: 1.5; margin: 0 0 24px; }
.mg-hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.mg-stat { display: flex; flex-direction: column; align-items: center; }
.mg-stat-num { font-size: 20px; font-weight: 800; color: #6366f1; }
.mg-stat-label { font-size: 10.5px; color: var(--text2); text-align: center; max-width: 100px; }
.mg-section-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 16px; text-align: center; }
.mg-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.mg-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.mg-card-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.mg-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.mg-card p { font-size: 13px; color: var(--text2); margin: 0 0 10px; line-height: 1.5; }
.mg-card-example { font-size: 12px; color: var(--text2); background: rgba(99,102,241,0.04); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.mg-ex-label { font-weight: 700; color: #ef4444; }
.mg-how-it-works { margin-bottom: 32px; }
.mg-steps { display: flex; flex-direction: column; gap: 0; }
.mg-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-left: 2px solid rgba(99,102,241,0.15); margin-left: 16px; padding-left: 20px; position: relative; }
.mg-step::before { content: ''; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #6366f1; }
.mg-step-num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mg-step-content h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 3px; }
.mg-step-content p { font-size: 12.5px; color: var(--text2); margin: 0; line-height: 1.4; }
.mg-cta-section { background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(124,58,237,0.06)); border-radius: 20px; padding: 28px 20px; margin-bottom: 24px; text-align: center; }
.mg-cta-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.mg-cta-sub { font-size: 13px; color: var(--text2); margin: 0 0 20px; }
.mg-upload-area { max-width: 480px; margin: 0 auto; }
.mg-upload-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mg-upload-card { background: var(--surface); border: 2px dashed var(--border); border-radius: 14px; padding: 20px 12px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all 0.2s; }
.mg-upload-card:hover, .mg-upload-card:active { border-color: #6366f1; background: rgba(99,102,241,0.03); }
.mg-upload-card span:first-of-type { font-size: 13px; font-weight: 600; color: var(--text); }
.mg-upload-hint { font-size: 11px; color: var(--text2); }
.mg-trust-section { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.mg-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }

/* ManageGo home banner */
.mg-home-banner { margin: 0 0 16px; cursor: pointer; }
.mg-banner-inner { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.08)); border: 1px solid rgba(99,102,241,0.15); border-radius: 14px; padding: 14px 16px; transition: all 0.2s; }
.mg-banner-inner:active { transform: scale(0.98); }
.mg-banner-left { display: flex; flex-direction: column; gap: 2px; }
.mg-banner-badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg,#6366f1,#10b981); padding: 2px 8px; border-radius: 10px; width: fit-content; margin-bottom: 4px; }
.mg-banner-title { font-size: 15px; font-weight: 700; color: var(--text); }
.mg-banner-sub { font-size: 12px; color: var(--text2); }
