/* Orlando Property AI - 明亮阳光主题 */
:root {
  --bg: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --cta-start: #f59e0b;
  --cta-end: #ea580c;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ========== 顶部导航 ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--text);
}

.logo-text {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

/* ========== Hero 区域 ========== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(248, 250, 252, 0.4) 100%
  );
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: url("orlando-134182709%20(1).jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(255, 235, 200, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-title strong {
  font-weight: 700;
  font-size: 1.1em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-end) 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
}

.hero-or {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-alt {
  margin-top: 0.5rem;
}

/* ========== Recommendation flow (gradient + step form) ========== */
.recommendation-flow {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.flow-visible #recommendationFlow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.flow-visible #recommendationFlow .flow-gradient {
  opacity: 1;
}

body.flow-visible #recommendationFlow .flow-content {
  opacity: 1;
  transform: translateY(0);
}

.flow-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#recommendationFlow .flow-gradient {
  background: linear-gradient(160deg,
    #f5ebe0 0%,
    #f0e0d0 40%,
    #ebd5c0 70%,
    #f2e5d8 100%
  );
}

#reportByAddressFlow .flow-gradient {
  background: linear-gradient(160deg,
    rgba(255, 250, 240, 0.98) 0%,
    rgba(255, 243, 224, 0.98) 50%,
    rgba(255, 248, 240, 0.99) 100%
  );
}

.flow-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  min-width: 0;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

/* Desktop: wider panel for report + investment list (+ property detail) */
@media (min-width: 900px) {
  #recommendationFlow .flow-content:has(#flowStepReportLoading.flow-step-visible),
  #recommendationFlow .flow-content:has(#flowStepInvestList.flow-step-visible),
  #recommendationFlow .flow-content:has(#flowStepDetail.flow-step-visible) {
    max-width: min(960px, 94vw);
  }
}

/* Report by Address flow: same gradient, separate visibility */
#reportByAddressFlow .flow-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

body.report-by-address-visible #reportByAddressFlow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.report-by-address-visible #reportByAddressFlow .flow-gradient {
  opacity: 1;
}

body.report-by-address-visible #reportByAddressFlow .flow-content {
  opacity: 1;
  transform: translateY(0);
}

.address-form .flow-input,
.address-form .flow-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 4px;
}

.address-form .flow-select {
  cursor: pointer;
  appearance: auto;
}

.address-form .flow-input:focus,
.address-form .flow-select:focus {
  outline: none;
  border-color: var(--cta-start);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.address-form .flow-input[readonly] {
  background: var(--muted);
  color: var(--text);
}

.address-row {
  margin-bottom: 1rem;
}

.address-row-first {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 12px;
  align-items: end;
}

.address-row-second {
  display: grid;
  grid-template-columns: 1fr 70px 90px;
  gap: 12px;
  align-items: end;
}

.address-form .flow-next {
  margin-top: 0.5rem;
  width: 100%;
}

.flow-step {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.12);
  min-width: 0;
}

#recommendationFlow .flow-step {
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  border: 1px solid #d4d4d8;
}

#recommendationFlow .flow-question {
  color: #0f172a;
  font-weight: 700;
}

#recommendationFlow .flow-option {
  color: #0f172a;
  background: #f1f5f9;
  border: 2px solid #94a3b8;
}

#recommendationFlow .flow-option:hover {
  border-color: var(--accent);
  background: #fff7ed;
}

#recommendationFlow .flow-option-chip.flow-option-selected,
#recommendationFlow .flow-option.flow-option-selected {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.2);
  color: #0f172a;
}

#reportByAddressFlow .flow-step {
  max-width: 400px;
}

#reportByAddressNextBtn {
  height: 52px;
  min-height: 52px;
  max-height: 52px;
}

.flow-step-header {
  margin: -8px 0 16px 0;
  text-align: left;
}

.flow-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.flow-back:hover {
  color: var(--accent);
}

.flow-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 24px;
  text-align: center;
}

.flow-question strong {
  color: #c2410c;
}

.flow-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-option {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  border: 2px solid #94a3b8;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.flow-option:hover {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

.flow-option:focus {
  outline: none;
  border-color: var(--cta-end);
}

.flow-option.flow-option-selected {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.15);
  animation: flow-select-flash 0.5s ease;
}

@keyframes flow-select-flash {
  0% {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45);
  }
  100% {
    box-shadow: none;
  }
}

.flow-step {
  display: none;
}

.flow-step.flow-step-visible {
  display: block;
}

.flow-step.flow-step-enter {
  animation: flow-step-fade-in 0.35s ease forwards;
}

@keyframes flow-step-fade-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-hint {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin: -8px 0 16px;
}

.flow-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  min-width: 0;
}

.flow-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px 12px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.flow-input::placeholder {
  color: var(--muted);
}

.flow-input:focus {
  outline: none;
  border-color: var(--accent);
}

.flow-range-sep {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

/* Budget dropdowns (Minimum / Maximum) */
.flow-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.flow-dropdown {
  position: relative;
}

.flow-dropdown-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.flow-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
}

.flow-dropdown-trigger:hover {
  border-color: var(--muted);
}

.flow-dropdown.open .flow-dropdown-trigger {
  border-color: var(--accent);
  outline: none;
}

.flow-dropdown-text {
  color: var(--text);
}

.flow-dropdown-trigger:not(.has-value) .flow-dropdown-text {
  color: var(--muted);
}

.flow-dropdown-arrow {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.flow-dropdown.open .flow-dropdown-arrow {
  transform: rotate(180deg);
  border-top-color: var(--accent);
}

.flow-dropdown-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 10;
}

.flow-dropdown.open .flow-dropdown-list {
  display: block;
}

.flow-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.flow-dropdown-item:last-child {
  border-bottom: none;
}

.flow-dropdown-item:hover {
  background: rgba(245, 158, 11, 0.1);
}

.flow-dropdown-item.selected {
  background: rgba(245, 158, 11, 0.15);
  font-weight: 600;
}

.flow-error {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--danger);
  min-height: 1.4em;
}

.flow-homes-available {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--accent, #ea580c);
  font-weight: 600;
  min-height: 1.4em;
}

.flow-error-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
  line-height: 1.5;
}

.flow-report-result {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}

.flow-report-result[hidden] {
  display: none;
}

.flow-report-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text);
}

.flow-report-body {
  margin-bottom: 12px;
}

.flow-report-summary {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.flow-report-json {
  margin: 0;
  padding: 12px;
  font-size: 0.8rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Report loading step (streaming) */
.flow-report-loading-content {
  margin-top: 12px;
}

.flow-report-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid var(--border);
  border-top-color: var(--primary, #f59e0b);
  border-radius: 50%;
  animation: flow-spin 0.9s linear infinite;
}

.flow-report-spinner[aria-hidden="true"] {
  display: none;
}

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

.flow-report-loading-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
}

.flow-report-loading-result {
  margin-top: 16px;
}

.flow-report-loading-result[hidden] {
  display: none;
}

.flow-report-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.flow-report-result-header .flow-report-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  text-align: left;
}

.flow-report-download-pdf {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-end) 100%);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.flow-report-download-pdf:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.flow-report-download-pdf:active:not(:disabled) {
  transform: translateY(1px);
}

.flow-report-download-pdf:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .flow-report-result-header {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-report-download-pdf {
    width: 100%;
    text-align: center;
  }
}

.flow-report-scroll-wrap {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-bottom: 12px;
}

.res-report-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-report-section {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.res-report-section-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.res-report-address-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.res-report-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin-bottom: 8px;
}

.res-report-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.res-report-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.res-report-subsection {
  margin-top: 10px;
}

.res-report-subsection h5 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.res-report-text {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text);
}

.res-report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.res-report-pros-cons-stack {
  margin-top: 8px;
}

.res-report-pros-cons-stack h5 {
  margin: 10px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.res-report-pros-cons-stack h5:first-child {
  margin-top: 0;
}

.res-report-pros-cons-divider {
  margin: 12px 0;
  border: none;
  border-top: 1px solid var(--border, #e5e7eb);
}

.res-report-pros-wrap,
.res-report-pros-wrap .res-report-list,
.res-report-pros-wrap h5 {
  color: #16a34a;
}

.res-report-cons-wrap,
.res-report-cons-wrap .res-report-list,
.res-report-cons-wrap h5 {
  color: #dc2626;
}

.res-report-col h5 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.res-report-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text);
}

.res-report-list li {
  margin-bottom: 4px;
}

.res-report-overall {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.res-report-overall-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.res-report-overall-badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.res-report-overall-badge--warning {
  background: rgba(234, 179, 8, 0.2);
  color: #a16207;
}

.res-report-overall-badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.res-report-disclaimer {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.65rem;
  line-height: 1.35;
  color: #9ca3af;
}

.flow-report-json-wrapper {
  margin-top: 12px;
}

.flow-report-json-summary {
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 4px;
}

.flow-report-photos {
  margin-top: 16px;
  margin-bottom: 12px;
  text-align: left;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.flow-report-photo-thumb {
  width: 148px;
  height: 110px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .flow-report-photo-thumb {
    width: 168px;
    height: 120px;
  }
}

.flow-report-photo-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.flow-report-photos-loading,
.flow-report-photos-none {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.flow-report-photos-none {
  font-style: italic;
}

.flow-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 60px;
}

.flow-gallery-overlay[hidden] {
  display: none;
}

.flow-gallery-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.flow-gallery-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.flow-gallery-prev,
.flow-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.flow-gallery-prev:hover,
.flow-gallery-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.flow-gallery-prev {
  left: 16px;
}

.flow-gallery-next {
  right: 16px;
}

.flow-gallery-image-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-gallery-image-wrap img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.flow-gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* Top slide-down toast */
.toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 14px 20px;
  background: var(--text, #1e293b);
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  transition: transform 0.35s ease-out;
  pointer-events: none;
}

.toast[hidden] {
  display: none;
}

.toast.toast-visible {
  transform: translateY(0);
}

@media (max-width: 360px) {
  .flow-range {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .flow-range-sep {
    text-align: center;
  }
}

.flow-next {
  width: 100%;
  min-height: 52px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-end) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.flow-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.flow-next:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.flow-next:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.flow-next.loading {
  pointer-events: none;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.flow-next.loading .btn-text {
  visibility: visible;
}

/* Spinner to the left of “Fetching Data” */
.flow-next.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: flow-spin 0.7s linear infinite;
}

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

.flow-pick-row {
  margin-bottom: 20px;
}

.flow-pick-row:last-of-type {
  margin-bottom: 24px;
}

.flow-pick-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.flow-pick-label-section {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 4px;
}

.flow-exact-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.flow-exact-match input {
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.flow-year-row {
  margin-top: 16px;
  margin-bottom: 20px;
}

.flow-year-row[hidden] {
  display: none;
}

.flow-down-payment-row {
  margin-top: 16px;
  margin-bottom: 20px;
}

.flow-down-payment-row[hidden] {
  display: none;
}

.flow-year-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  -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 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.flow-year-select:hover {
  border-color: var(--muted);
}

.flow-year-select:focus {
  outline: none;
  border-color: var(--accent);
}

.flow-options-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-options-multi {
  max-height: 200px;
  overflow-y: auto;
}

.flow-area-fire {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
}

.flow-area-fire svg {
  display: block;
}

.flow-option-chip {
  min-width: 48px;
  padding: 12px 16px;
}

.flow-option-chip.flow-option-selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 600;
  animation: flow-select-flash-chip 0.5s ease;
}

@keyframes flow-select-flash-chip {
  0% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
  }
  100% {
    box-shadow: none;
  }
}

/* ========== Investment list (score > 45, cards + load more) ========== */
.flow-invest-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 10px;
  max-width: 100%;
}

.flow-invest-sort-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin: 0;
}

.flow-invest-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.flow-invest-sort-btn {
  flex: 1 1 120px;
  min-width: 100px;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #333;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.flow-invest-sort-btn:hover {
  border-color: #ccc;
  background: #fafafa;
}

.flow-invest-sort-btn:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.flow-invest-sort-btn--active {
  border-color: #ea580c;
  background: #fffaf5;
  color: #9a3412;
}

.flow-invest-sort-dir {
  font-weight: 700;
  opacity: 0.85;
}

.flow-invest-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-invest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 4px 0;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.flow-invest-list > .flow-invest-card {
  flex: none;
}

.flow-invest-sentinel {
  height: 1px;
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

.flow-invest-card {
  flex: none;
  min-height: min-content;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-invest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.flow-invest-card-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
}

.flow-invest-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--border);
  flex-shrink: 0;
}

.flow-invest-card-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flow-invest-card-img-wrap .flow-invest-card-img,
.flow-invest-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flow-invest-card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.flow-invest-card-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.flow-invest-card-photo-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.9rem;
}

.flow-invest-card-photo-loading[hidden] {
  display: none;
}

.flow-invest-card-photo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: flow-invest-photo-spin 0.8s linear infinite;
}

@keyframes flow-invest-photo-spin {
  to { transform: rotate(360deg); }
}

.flow-invest-card-prev {
  left: 8px;
}

.flow-invest-card-next {
  right: 8px;
}

/* Property detail step (map + details) */
.flow-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 24px;
  max-width: 640px;
  margin: 0 auto;
}

.flow-detail-map-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.flow-detail-map {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.flow-detail-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  background: #f1f5f9;
}

.flow-detail-map-fallback[hidden] {
  display: none !important;
}

.flow-detail-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.flow-detail-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}

.flow-detail-photo-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flow-detail-photo-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.9rem;
}

.flow-detail-photo-loading[hidden] {
  display: none !important;
}

.flow-detail-photo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: flow-invest-photo-spin 0.8s linear infinite;
}

.flow-detail-photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.flow-detail-photo-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.flow-detail-photo-prev {
  left: 8px;
}

.flow-detail-photo-next {
  right: 8px;
}

.flow-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.flow-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.95rem;
  color: #334155;
}

.flow-detail-address {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.4;
}

.flow-detail-extra {
  font-size: 0.85rem;
  color: #64748b;
}

.flow-detail-report-btn {
  margin-top: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.flow-detail-report-btn:hover {
  background: #1e293b;
}

.flow-invest-card-img-wrap .flow-invest-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.flow-invest-card-body {
  display: block;
  padding: 14px 16px;
  min-height: 140px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: #1e293b;
}

.flow-invest-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.flow-invest-card-row {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 4px;
  line-height: 1.4;
}

.flow-invest-label {
  color: #64748b;
  font-weight: 600;
  margin-right: 6px;
}

.flow-invest-card-address {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
  margin-top: 8px;
  margin-bottom: 4px;
  word-break: break-word;
}

.flow-invest-card-score {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
}

#recommendationFlow .flow-invest-card .flow-invest-card-body {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 140px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

/* Desktop: investment list — 2 columns, compact cards (~4 visible per view) */
@media (min-width: 900px) {
  #flowStepInvestList .flow-invest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px 12px;
    max-height: min(68vh, 620px);
    padding: 4px 2px;
  }

  #flowStepInvestList .flow-invest-list > .flow-invest-sentinel {
    grid-column: 1 / -1;
    width: 100%;
  }

  #flowStepInvestList .flow-invest-card-media {
    aspect-ratio: 16 / 9;
    max-height: 118px;
  }

  #flowStepInvestList .flow-invest-card-arrow {
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
  }

  #flowStepInvestList .flow-invest-card-prev {
    left: 6px;
  }

  #flowStepInvestList .flow-invest-card-next {
    right: 6px;
  }

  #flowStepInvestList .flow-invest-card-body {
    padding: 8px 10px;
    min-height: 0;
  }

  #flowStepInvestList .flow-invest-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
  }

  #flowStepInvestList .flow-invest-card-row {
    font-size: 0.78rem;
    margin-bottom: 2px;
    line-height: 1.35;
  }

  #flowStepInvestList .flow-invest-card-address {
    font-size: 0.72rem;
    margin-top: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #recommendationFlow #flowStepInvestList .flow-invest-card .flow-invest-card-body {
    min-height: 0 !important;
    padding: 8px 10px !important;
  }
}

.flow-invest-loading-more {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 8px 0 0;
  padding: 4px 0;
}

.flow-load-more-wrap {
  text-align: center;
  margin: 8px 0 0;
}

.flow-load-more {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}

.flow-load-more:hover:not(:disabled) {
  color: #1d4ed8;
}

.flow-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== 特性展示 ========== */
.features {
  background: var(--bg);
  padding: 48px 20px 56px;
  border-top: 1px solid var(--border);
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  justify-items: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* ========== Footer ========== */
.site-footer {
  margin-top: auto;
  padding: 24px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-section {
  padding: 40px 20px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.legal-page {
  padding-top: 80px;
  min-height: 100vh;
}

.legal-section h2 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.legal-back {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.legal-meta {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-section h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-section p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-section ul {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-disclaimer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* ========== 表单主内容区 ========== */
.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.main {
  padding-bottom: 32px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

.section h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* 预算输入 */
.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.range-row input::placeholder {
  color: var(--muted);
}

.range-sep {
  color: var(--muted);
  font-weight: 500;
}

/* 单选 / 多选 */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
}

.options-multi .option {
  flex: 1 1 140px;
}

/* 学区下拉 */
.school-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.school-row label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-row .label {
  flex: 0 0 56px;
  font-size: 0.9rem;
  color: var(--muted);
}

.school-row select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

/* 提交按钮（与 Hero CTA 一致渐变） */
.submit {
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--cta-start) 0%, var(--cta-end) 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
}

.submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.4);
}

.submit:active {
  transform: translateY(0);
}

.submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px 20px;
}

.loading p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

/* Results */
.results {
  margin-top: 28px;
}

.results-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 4px;
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s;
}

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

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-reason {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Error */
.error {
  margin-top: 20px;
  padding: 14px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}
