/* Zantreality AI Investment — module styles (extends landing.css tokens) */
.inv-page {
  --inv-positive: #2bd47d;
  --inv-amber: #f59e0b;
  --inv-risk: #ef4444;
  --inv-soft: #11131c;
  --inv-line: rgba(255, 255, 255, 0.08);
  color: var(--ink, #f4f5f8);
  background: var(--bg-page, #090a0f);
  padding-bottom: 72px;
}

.inv-page .field {
  width: 100%;
  border: 1px solid var(--inv-line);
  border-radius: 11px;
  padding: 12px 14px;
  background: #161928;
  color: #ffffff;
  outline: 0;
  font-size: 14px;
}

.inv-page .field:focus {
  border-color: rgba(198, 156, 78, 0.45);
  box-shadow: 0 0 0 3px rgba(198, 156, 78, 0.12);
}

.inv-page select.field {
  appearance: none;
  -webkit-appearance: none;
  background-color: #161928;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a8a4bc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 40px;
  color: #ffffff;
  cursor: pointer;
}

.inv-page select.field:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235b37e8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.inv-field-block {
  display: grid;
  gap: 8px;
}

.inv-field-block > span {
  font-size: 12px;
  font-weight: 700;
  color: #c6c9d8;
}

.inv-field-hint {
  color: var(--muted, #67647a);
  font-size: 12px;
}

.inv-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inv-type-chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.inv-type-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inv-type-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--inv-line);
  border-radius: 999px;
  background: #11131c;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.inv-type-chip:hover span {
  border-color: rgba(198, 156, 78, 0.35);
}

.inv-type-chip input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary, #b88628), var(--primary-2, #c99b3b));
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(184, 134, 40, 0.25);
}

.inv-type-chip input:focus-visible + span {
  outline: 2px solid rgba(198, 156, 78, 0.45);
  outline-offset: 2px;
}

/* ---------- Subnav ---------- */
.inv-subnav {
  border-bottom: 1px solid var(--inv-line);
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 78px;
  z-index: 40;
}

.inv-subnav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.inv-subnav-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.inv-subnav-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s ease;
}

.inv-subnav-item:hover {
  background: rgba(198, 156, 78, 0.06);
  color: var(--primary, #c69c4e);
}

.inv-subnav-item.is-active {
  color: #000;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary, #b88628), var(--primary-2, #c99b3b));
  box-shadow: 0 8px 18px rgba(184, 134, 40, 0.25);
}

/* ---------- Hero ---------- */
.inv-hero {
  position: relative;
  padding: 48px 0 36px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(184, 134, 40, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(201, 155, 59, 0.12), transparent 50%),
    #090a0f;
  border-bottom: 1px solid var(--inv-line);
  overflow: hidden;
}

.inv-hero-inner {
  display: grid;
  gap: 28px;
  align-items: start;
}

.inv-hero-copy {
  max-width: 640px;
}

.inv-hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #ffffff;
  font-weight: 900;
}

.inv-hero-copy h1 span {
  background: linear-gradient(135deg, var(--primary, #c69c4e), var(--primary-2, #ddb66d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inv-hero-copy > p {
  margin: 0 0 22px;
  color: var(--muted, #67647a);
  font-size: 16px;
  line-height: 1.65;
  max-width: 52ch;
}

.inv-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.inv-search {
  background: #11131c;
  border: 1px solid var(--gold-border, rgba(184, 134, 40, 0.25));
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.inv-search-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.inv-search label {
  display: grid;
  gap: 6px;
}

.inv-search label span {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inv-search .btn {
  height: 46px;
  padding-inline: 20px;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.inv-section {
  padding: 40px 0;
}

.inv-section.soft {
  background: #0c0e15;
  border-top: 1px solid var(--inv-line);
  border-bottom: 1px solid var(--inv-line);
}

.inv-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.inv-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  color: #ffffff;
  font-weight: 900;
}

.inv-section-head p {
  margin: 0;
  color: var(--muted, #67647a);
  font-size: 14px;
  line-height: 1.55;
  max-width: 56ch;
}

.inv-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #7a768c;
}

/* ---------- Strategy / feature cards ---------- */
.inv-strategy-grid,
.inv-snapshot-grid,
.inv-calc-grid,
.inv-feature-grid {
  display: grid;
  gap: 14px;
}

.inv-strategy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inv-snapshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inv-calc-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inv-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inv-card {
  background: #11131c;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.inv-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.inv-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.inv-card p {
  margin: 0;
  color: var(--muted, #67647a);
  font-size: 13px;
  line-height: 1.55;
}

.inv-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #161928;
  color: var(--primary-2);
  border: 1px solid var(--gold-border);
  margin-bottom: 4px;
}

.inv-card-ico svg {
  width: 20px;
  height: 20px;
}

.inv-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.inv-stat-card strong {
  font-size: 26px;
  letter-spacing: -0.03em;
  display: block;
  margin-top: 4px;
}

.inv-stat-card span {
  font-size: 12px;
  font-weight: 700;
  color: #6b6680;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Opportunity cards ---------- */
.inv-opp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.inv-opp-grid.is-list {
  grid-template-columns: 1fr;
}

.inv-property-card {
  background: #131520;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.inv-property-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.inv-opp-grid.is-list .inv-property-card {
  flex-direction: row;
}

.inv-property-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #ebe6ff, #f7f6ff),
    rgba(198, 156, 78, 0.12);
  background-size: cover;
  background-position: center;
}

.inv-opp-grid.is-list .inv-property-media {
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 180px;
}

.inv-property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary, #c69c4e) calc(var(--score, 0) * 1%),
    rgba(255, 255, 255, 0.55) 0
  );
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.inv-score-badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #11131c;
}

.inv-score-badge strong {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.inv-property-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.inv-property-body h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.inv-property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #6b6680;
  font-weight: 600;
}

.inv-property-price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.inv-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.inv-metric {
  background: var(--inv-soft);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.inv-metric span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #7a768c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inv-metric strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.inv-metric.is-positive strong { color: var(--inv-positive); }
.inv-metric.is-amber strong { color: var(--inv-amber); }
.inv-metric.is-risk strong { color: var(--inv-risk); }

.inv-provenance {
  font-size: 11px;
  color: #8a8699;
  line-height: 1.4;
}

.inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(198, 156, 78, 0.12);
  color: var(--primary, #c69c4e);
  border: 1px solid rgba(198, 156, 78, 0.12);
}

.inv-chip.is-stale,
.inv-chip.is-amber {
  background: #fff6e8;
  color: #b86a00;
  border-color: rgba(255, 157, 46, 0.28);
}

.inv-chip.is-risk {
  background: #fff0f0;
  color: var(--inv-risk);
  border-color: rgba(229, 72, 77, 0.22);
}

.inv-chip.is-positive {
  background: #eafaf4;
  color: var(--inv-positive);
  border-color: rgba(22, 165, 122, 0.22);
}

.inv-property-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.inv-property-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  font-size: 13px;
}

/* ---------- Filters / toolbar ---------- */
.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.inv-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  background: #11131c;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 7px 22px rgba(0, 0, 0, 0.08));
}

.inv-filters label {
  display: grid;
  gap: 6px;
}

.inv-filters label span {
  font-size: 11px;
  font-weight: 750;
  color: #c6c9d8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inv-filters-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.inv-view-toggle {
  display: inline-flex;
  border: 1px solid var(--inv-line);
  border-radius: 12px;
  overflow: hidden;
  background: #11131c;
}

.inv-view-toggle button,
.inv-view-toggle a {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #5e596d;
  cursor: pointer;
}

.inv-view-toggle .is-active {
  background: rgba(198, 156, 78, 0.1);
  color: var(--primary, #c69c4e);
}

.inv-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #5e596d;
}

.inv-sort select {
  min-width: 180px;
}

/* ---------- Analysis detail ---------- */
.inv-detail-top {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.inv-detail-top h1 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.inv-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.inv-inline-form {
  display: inline;
  margin: 0;
}

.inv-inline-form .btn {
  cursor: pointer;
}

.inv-score-ring {
  --score: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary, #c69c4e) calc(var(--score) * 1%),
    #ebe6ff 0
  );
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.inv-score-ring::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #11131c;
}

.inv-score-panel {
  background: #11131c;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  min-width: 180px;
  box-shadow: var(--shadow-sm, 0 7px 22px rgba(0, 0, 0, 0.08));
  position: relative;
}

.inv-score-panel .inv-score-ring {
  position: relative;
}

.inv-score-panel .inv-score-value {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.inv-score-panel small {
  display: block;
  color: #6b6680;
  font-weight: 650;
}

.inv-panel {
  background: #11131c;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm, 0 7px 22px rgba(0, 0, 0, 0.08));
  margin-bottom: 16px;
}

.inv-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.inv-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.inv-kv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inv-kv {
  background: var(--inv-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

.inv-kv span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7a768c;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inv-kv strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.inv-input {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--inv-line);
  border-radius: 10px;
  background: #11131c;
  color: var(--ink, #12102f);
  font: inherit;
  font-size: 14px;
}

.inv-list {
  margin: 0;
  padding-left: 18px;
  color: #4e4a61;
  font-size: 14px;
  line-height: 1.6;
}

.inv-list li + li {
  margin-top: 6px;
}

.inv-breakdown {
  display: grid;
  gap: 10px;
}

.inv-breakdown-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 10px;
  align-items: center;
}

.inv-breakdown-bar {
  height: 8px;
  border-radius: 999px;
  background: #ebe6ff;
  overflow: hidden;
  grid-column: 1 / -1;
}

.inv-breakdown-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary, #c69c4e), var(--primary-2, #ddb66d));
  border-radius: inherit;
}

/* ---------- Compare table ---------- */
.inv-compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  background: #11131c;
  box-shadow: var(--shadow-sm, 0 7px 22px rgba(0, 0, 0, 0.08));
}

.inv-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.inv-compare-table th,
.inv-compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--inv-line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.inv-compare-table th {
  background: var(--inv-soft);
  font-weight: 750;
}

.inv-compare-table tr:last-child td {
  border-bottom: 0;
}

.inv-compare-table .is-positive { color: var(--inv-positive); font-weight: 750; }
.inv-compare-table .is-amber { color: var(--inv-amber); font-weight: 750; }
.inv-compare-table .is-risk { color: var(--inv-risk); font-weight: 750; }

/* ---------- Scenario / results ---------- */
.inv-scenario-table {
  width: 100%;
  border-collapse: collapse;
}

.inv-scenario-table th,
.inv-scenario-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--inv-line);
  font-size: 13px;
  text-align: left;
}

.inv-scenario-table th {
  background: var(--inv-soft);
  font-weight: 750;
}

.inv-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f6ff, #fff);
  border: 1px solid var(--inv-line);
}

.inv-result-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.inv-assumptions {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffaf0;
  border: 1px solid rgba(255, 157, 46, 0.28);
  font-size: 13px;
  color: #5e4a2a;
  line-height: 1.55;
}

.inv-assumptions strong {
  display: block;
  margin-bottom: 6px;
  color: #8a5600;
}

.inv-assumptions ul {
  margin: 0;
  padding-left: 18px;
}

/* ---------- Forms / finder ---------- */
.inv-form-card {
  background: #11131c;
  border: 1px solid var(--inv-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm, 0 7px 22px rgba(0, 0, 0, 0.08));
  margin-bottom: 16px;
}

.inv-form-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.inv-form-card > p {
  margin: 0 0 16px;
  color: var(--muted, #67647a);
  font-size: 14px;
}

.inv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inv-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inv-form-grid label,
.inv-form-card label.block {
  display: grid;
  gap: 6px;
}

.inv-form-grid label span,
.inv-form-card label.block > span {
  font-size: 12px;
  font-weight: 700;
  color: #c6c9d8;
}

.inv-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(198, 156, 78, 0.1);
  color: var(--primary, #c69c4e);
  font-size: 13px;
  font-weight: 800;
  margin-right: 8px;
}

.inv-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inv-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--inv-line);
  border-radius: 12px;
  background: #11131c;
  font-size: 13px;
  font-weight: 650;
}

.inv-check input {
  margin-top: 2px;
  accent-color: var(--primary, #c69c4e);
}

.inv-add-form {
  display: grid;
  gap: 10px;
  margin-top: 0;
  width: 100%;
}

.inv-add-form label > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c6c9d8;
  margin-bottom: 6px;
}

.inv-add-form .inv-check {
  align-items: center;
}

.inv-check-compact {
  padding: 10px 12px;
}

.inv-add-form .btn {
  width: 100%;
}

.inv-add-search {
  margin-bottom: 20px;
}

.inv-add-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.inv-add-search-field {
  display: grid;
  gap: 6px;
}

.inv-add-search-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #c6c9d8;
}

.inv-add-search-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inv-add-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.inv-add-card {
  background: #11131c;
  border: 1px solid var(--inv-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 7px 22px rgba(0, 0, 0, 0.08));
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.inv-add-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(198, 156, 78, 0.12);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.inv-add-card-media.is-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(198, 156, 78, 0.10) 0%, #ebe7fb 100%);
  color: #8b85a5;
}

.inv-add-card-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}

.inv-add-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inv-add-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 165, 122, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.inv-add-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.inv-add-card-top {
  display: grid;
  gap: 8px;
}

.inv-add-card-top h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.inv-add-card-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.inv-add-card-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.inv-add-card-btns .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.inv-pagination {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .inv-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .inv-add-grid {
    grid-template-columns: 1fr;
  }

  .inv-add-search-row {
    grid-template-columns: 1fr;
  }

  .inv-add-card-btns {
    grid-template-columns: 1fr;
  }
}

.inv-check:has(input:checked) {
  border-color: rgba(198, 156, 78, 0.45);
  background: rgba(198, 156, 78, 0.06);
}

/* ---------- Dashboard / auth area ---------- */
.inv-dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.inv-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.inv-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--gold-border, rgba(184, 134, 40, 0.25));
  border-radius: 18px;
  background: #11131c;
  color: var(--muted, #9ba0b4);
}

.inv-empty h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-weight: 800;
}

.inv-empty p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted, #9ba0b4);
}

.inv-stale-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.inv-disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #11131c;
  border: 1px solid var(--inv-line, rgba(255, 255, 255, 0.08));
  font-size: 12px;
  color: var(--muted, #9ba0b4);
  line-height: 1.55;
}

.inv-cta-band {
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #2f1a8a, var(--primary, #c69c4e) 55%, var(--primary-2, #ddb66d));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.inv-cta-band h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.inv-cta-band p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
  max-width: 48ch;
}

.inv-cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.inv-markets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.inv-page-hero {
  padding: 32px 0 8px;
}

.inv-page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.03em;
}

.inv-page-hero p {
  margin: 0;
  color: var(--muted, #67647a);
  font-size: 15px;
  max-width: 60ch;
  line-height: 1.55;
}

.inv-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .inv-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-strategy-grid,
  .inv-snapshot-grid,
  .inv-calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-opp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-split { grid-template-columns: 1fr; }
  .inv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .inv-subnav { top: 64px; }
  .inv-hero { padding: 32px 0 24px; }
  .inv-search-grid,
  .inv-filters,
  .inv-strategy-grid,
  .inv-snapshot-grid,
  .inv-calc-grid,
  .inv-feature-grid,
  .inv-opp-grid,
  .inv-markets-grid,
  .inv-form-grid,
  .inv-form-grid-3,
  .inv-check-grid,
  .inv-kv-grid,
  .inv-result-top,
  .inv-dash-grid {
    grid-template-columns: 1fr;
  }
  .inv-detail-top { grid-template-columns: 1fr; }
  .inv-opp-grid.is-list .inv-property-card { flex-direction: column; }
  .inv-opp-grid.is-list .inv-property-media { width: 100%; min-height: 160px; }
  .inv-filters-actions { grid-column: 1; }
  .inv-hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- AI Assisted Chat Enhancements ---------- */
.inv-ai-trigger-btn {
  background: #11131c;
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--primary, #c69c4e);
  font-weight: 700;
  transition: all 0.2s ease;
}

.inv-ai-trigger-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary, #c69c4e);
  color: var(--primary, #c69c4e);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 156, 78, 0.15);
}

.inv-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #f4f5f8);
  background: #161928;
  border: 1px solid var(--gold-border, rgba(184, 134, 40, 0.25));
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.inv-chip-btn:hover {
  background: #1c2033;
  border-color: var(--primary-2, #c99b3b);
  color: var(--primary-2, #c99b3b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 134, 40, 0.2);
}

.inv-chip-btn:active {
  transform: translateY(0);
}

.inv-card--ai-highlight {
  position: relative;
  background: radial-gradient(400px 200px at 0% 0%, rgba(184, 134, 40, 0.15), transparent 60%), #11131c;
  border: 1px solid var(--gold-border, rgba(184, 134, 40, 0.35));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.inv-ai-chip-trigger {
  border-color: var(--gold-border, rgba(184, 134, 40, 0.3));
  color: var(--primary-2, #c99b3b);
  background: #161928;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
}

.inv-ai-chip-trigger:hover {
  border-color: var(--primary-2, #c99b3b);
  background: #1c2033;
  color: var(--primary-2, #c99b3b);
}

