:root {
  --font-ui: "Estedad", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, Consolas, monospace;
  --bg: #f5f5f0;
  --bg-soft: #eeeee8;
  --card: #ffffff;
  --card-muted: #fafaf8;
  --surface-inset: #f3f3ef;
  --border: #e3e3dc;
  --text: #1c2530;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --accent-hover: #2563eb;
  --accent-soft: #eff6ff;
  --brand-gold: #ffc300;
  --brand-gold-rgb: 255, 195, 0;
  --brand-gold-hover: #e6b000;
  --brand-gold-soft: rgba(255, 195, 0, 0.16);
  --brand-gold-deep: #c9a012;
  --success: #16a34a;
  --warning: #ca8a04;
  --danger: #dc2626;
  --radius-bento: 20px;
  --shadow-sm: 0 1px 3px rgba(28, 37, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 37, 48, 0.07);
}

/* Public brand theme: navy + gold (admin keeps :root blues) */
body.bento-page {
  --text: #0e3b65;
  --accent: #0e3b65;
  --accent-rgb: 14, 59, 101;
  --accent-hover: #0a2f52;
  --accent-soft: rgba(14, 59, 101, 0.08);
  --brand-gold: #ffc300;
  --brand-gold-rgb: 255, 195, 0;
  --brand-gold-hover: #e6b000;
  --brand-gold-soft: rgba(255, 195, 0, 0.16);
  --brand-gold-deep: #c9a012;
  --cta-shadow: 0 2px 10px rgba(14, 59, 101, 0.3);
  --muted: #5a6f86;
}

/* Thin navy scrollbars (page + modal + nested overflow) */
body.bento-page,
body.bento-page * {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.34) transparent;
}

body.bento-page::-webkit-scrollbar,
body.bento-page *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.bento-page::-webkit-scrollbar-track,
body.bento-page *::-webkit-scrollbar-track {
  background: transparent;
}

body.bento-page::-webkit-scrollbar-thumb,
body.bento-page *::-webkit-scrollbar-thumb {
  background-color: rgba(var(--accent-rgb), 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.bento-page::-webkit-scrollbar-thumb:hover,
body.bento-page *::-webkit-scrollbar-thumb:hover {
  background-color: rgba(var(--accent-rgb), 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.bento-page::-webkit-scrollbar-corner,
body.bento-page *::-webkit-scrollbar-corner {
  background: transparent;
}

/* GMV monthly bar chart (risk assessment page) */
.gmv-monthly-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.gmv-monthly-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.gmv-monthly-bar-shell {
  width: 100%;
  height: 180px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-muted);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.25rem;
}

.gmv-monthly-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  border-radius: 12px;
  min-height: 4px;
}

.gmv-monthly-bar-value {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(227, 227, 220, 0.9);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  margin: 0 0.2rem;
  pointer-events: none;
  white-space: nowrap;
  bottom: 0.35rem;
  top: auto;
}

.gmv-monthly-label {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.2;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  transition: all 0.15s ease;
}

.tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.search-form input.ltr {
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.ltr {
  direction: ltr;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.bento-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-bento);
}

.btn-primary,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--cta-shadow, 0 4px 12px rgba(var(--accent-rgb), 0.28));
}
button.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.hidden { display: none !important; }

.status-area {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-align: center;
}

.status-area.loading {
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--text);
}

.status-area.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--danger);
}

.status-area.success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: var(--text);
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(var(--accent-rgb), 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 0.5rem;
}

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

/* Dossier */
.dossier-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .dossier-header { grid-template-columns: 1fr; }
}

.seller-info h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-grid span.value {
  display: block;
  color: var(--text);
  margin-top: 0.15rem;
}

.meta-grid span.value-ltr {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.score-gauge {
  text-align: center;
  min-width: 140px;
}

.gauge-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  border: 4px solid var(--border);
  background: var(--surface-inset);
}

.gauge-circle .score-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gauge-circle .score-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-low { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.badge-medium { background: rgba(234, 179, 8, 0.2); color: var(--warning); }
.badge-high { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.warnings {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  font-size: 0.9rem;
}

.warnings ul {
  margin: 0.5rem 0 0;
  padding-right: 1.25rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scores-grid {
  display: grid;
  gap: 0.75rem;
}

.score-item {
  background: var(--surface-inset);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  overflow: visible;
}

.score-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.score-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.score-item-header .weight {
  color: var(--muted);
  font-size: 0.8rem;
}

.score-help {
  position: relative;
  display: inline-block;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.help-btn::-webkit-details-marker { display: none; }

.help-btn:hover,
.score-help[open] > .help-btn {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.help-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
}

.score-item .score-help .help-panel {
  right: auto;
  left: 0;
}

.help-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.help-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.help-formula {
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 0.8rem;
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
}

.help-parts {
  margin: 0;
  padding-right: 1.1rem;
  color: var(--muted);
}

.help-parts li {
  margin-bottom: 0.3rem;
}

.help-parts li:last-child {
  margin-bottom: 0;
}

.help-note {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.section-help .help-panel {
  top: calc(100% + 0.35rem);
  right: auto;
  left: 0;
}

@media (max-width: 640px) {
  .score-item .score-help .help-panel,
  .section-help .help-panel {
    position: fixed;
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
  }
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.success-orders-cta {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: flex-start;
}

.metric-item {
  background: var(--surface-inset);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.metric-item .label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.metric-item .value {
  font-size: 1rem;
  font-weight: 600;
}

.metric-clickable .metric-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.metric-clickable .metric-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metric-clickable .metric-link:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

.future-models {
  opacity: 0.55;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.future-item {
  background: var(--surface-inset);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.future-item span {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

.basalam-reviews-section .section-desc {
  margin-bottom: 1rem;
}

.basalam-store-block {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.basalam-store-block:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.basalam-store-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.basalam-store-header h4 {
  margin: 0;
  font-size: 1rem;
}

.basalam-summary-panel {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.basalam-summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--warning);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.basalam-summary-body {
  display: grid;
  grid-template-columns: auto 1fr 1.4fr;
  gap: 1.25rem;
  align-items: start;
}

.basalam-summary-score {
  text-align: center;
  min-width: 88px;
  padding: 0.5rem 0.75rem;
  background: var(--surface-inset);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.basalam-avg-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--warning);
}

.basalam-avg-stars {
  margin: 0.35rem 0;
  font-size: 1rem;
  letter-spacing: 2px;
}

.avg-star.filled { color: var(--warning); }
.avg-star.half { color: var(--warning); opacity: 0.55; }
.avg-star.empty { color: #4b5563; }

.basalam-avg-caption {
  font-size: 0.72rem;
  color: var(--muted);
}

.basalam-summary-stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.basalam-stat-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.basalam-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.basalam-stat-value {
  font-size: 1.15rem;
  color: var(--text);
}

.basalam-stat-note .basalam-stat-value {
  font-size: 0.95rem;
}

.basalam-summary-distribution {
  min-width: 0;
}

.basalam-dist-title {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.basalam-star-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(234, 179, 8, 0.25);
}

.basalam-star-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.basalam-star-chip.star-5 { border-color: rgba(34, 197, 94, 0.4); }
.basalam-star-chip.star-4 { border-color: rgba(132, 204, 22, 0.35); }
.basalam-star-chip.star-3 { border-color: rgba(234, 179, 8, 0.35); }
.basalam-star-chip.star-2 { border-color: rgba(249, 115, 22, 0.35); }
.basalam-star-chip.star-1 { border-color: rgba(239, 68, 68, 0.35); }

.basalam-star-chip .chip-star {
  color: var(--muted);
}

.basalam-star-chip strong {
  color: var(--text);
}

.basalam-reviews-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.basalam-badges-panel {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.basalam-badges-panel.basalam-badges-empty {
  opacity: 0.85;
}

.basalam-badges-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.basalam-badges-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--success);
}

.basalam-badges-count {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.basalam-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.basalam-badge-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
}

.basalam-badge-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--badge-bg, #EBF8F8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.basalam-badge-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.basalam-badge-icon-fallback {
  font-size: 1.5rem;
  line-height: 1;
}

.basalam-badge-body {
  min-width: 0;
}

.basalam-badge-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.basalam-badge-summary {
  font-size: 0.78rem;
  color: var(--success);
  margin-bottom: 0.35rem;
}

.basalam-badge-desc {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.basalam-badge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.basalam-badges-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(34, 197, 94, 0.25);
  font-size: 0.82rem;
}

.store-title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.store-title-text {
  font-weight: 500;
}

.store-leaderboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
}

.store-leaderboard-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.store-leaderboard-category {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.store-leaderboard-tag .leaderboard-rank-badge,
.basalam-leaderboard-table .leaderboard-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.82rem;
}

.store-leaderboard-tag .leaderboard-rank-badge.rank-top,
.basalam-leaderboard-table .leaderboard-rank-badge.rank-top {
  border-color: rgba(234, 179, 8, 0.45);
  color: var(--warning);
}

.store-leaderboard-tag .leaderboard-rank-badge.rank-1,
.basalam-leaderboard-table .leaderboard-rank-badge.rank-1 {
  background: rgba(234, 179, 8, 0.15);
}

.basalam-leaderboard-panel {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-bento);
  padding: 1rem 1.1rem;
  margin-bottom: 0;
}

.basalam-leaderboard-store-block {
  margin-top: 1.25rem;
}

.basalam-leaderboard-store-block:first-child {
  margin-top: 0;
}

.basalam-leaderboard-store-header {
  margin-bottom: 0.75rem;
}

.basalam-leaderboards-summary {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.basalam-leaderboard-panel.basalam-leaderboard-empty {
  opacity: 0.85;
}

.basalam-leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.basalam-leaderboard-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.basalam-leaderboard-count {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.basalam-leaderboard-table-wrap {
  border-color: rgba(168, 85, 247, 0.2);
}

.basalam-leaderboard-table .leaderboard-category {
  font-weight: 600;
  font-size: 0.88rem;
}

.basalam-leaderboard-table .leaderboard-badge-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.basalam-leaderboard-table .leaderboard-icon-cell {
  width: 44px;
  text-align: center;
}

.basalam-leaderboard-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

.basalam-leaderboard-row.rank-top {
  background: rgba(234, 179, 8, 0.05);
}

.star-distribution {
  width: 100%;
}

.star-dist-row {
  display: grid;
  grid-template-columns: 3rem 1fr 2.5rem 2.5rem;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.star-dist-bar {
  height: 8px;
  background: var(--surface-inset);
  border-radius: 4px;
  overflow: hidden;
}

.star-dist-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), #fbbf24);
  border-radius: 4px;
}

.star-dist-count {
  text-align: left;
}

.star-dist-pct {
  text-align: left;
  font-size: 0.7rem;
  color: var(--muted);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-card {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.review-author {
  font-weight: 600;
  margin-left: 0.5rem;
}

.review-stars {
  color: var(--warning);
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.review-date {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.review-product {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.review-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.review-answers {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.review-answer {
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.review-answer-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
}

.review-answer-author {
  font-weight: 600;
  color: var(--accent);
}

.review-answer-date {
  color: var(--muted);
}

.review-answer-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.eligible-tag {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.eligible-tag.not-eligible { color: var(--warning); }

.section-desc {
  margin: -0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lazy-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-nested {
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: transparent;
}

.card-nested:first-child {
  margin-top: 0;
}

.card-nested .section-title {
  font-size: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--surface-inset);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.06);
}

.data-table tbody tr.store-row-leaderboard {
  background: linear-gradient(
    to left,
    rgba(168, 85, 247, 0.14) 0%,
    rgba(168, 85, 247, 0.05) 45%,
    transparent 100%
  );
  border-inline-start: 3px solid rgba(168, 85, 247, 0.65);
}

.data-table tbody tr.store-row-leaderboard-top {
  background: linear-gradient(
    to left,
    rgba(234, 179, 8, 0.16) 0%,
    rgba(168, 85, 247, 0.08) 50%,
    transparent 100%
  );
  border-inline-start: 3px solid rgba(234, 179, 8, 0.85);
}

.data-table tbody tr.store-row-leaderboard:hover,
.data-table tbody tr.store-row-leaderboard-top:hover {
  background: linear-gradient(
    to left,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(var(--accent-rgb), 0.08) 55%,
    transparent 100%
  );
}

.data-table tbody tr.store-row-leaderboard-top:hover {
  background: linear-gradient(
    to left,
    rgba(234, 179, 8, 0.22) 0%,
    rgba(168, 85, 247, 0.1) 50%,
    rgba(var(--accent-rgb), 0.06) 100%
  );
}

.tag-verified {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 600;
}

.store-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
  word-break: break-all;
}

.store-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

@media (max-width: 720px) {
  .basalam-summary-body {
    grid-template-columns: 1fr;
  }

  .basalam-summary-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
  }

  .basalam-avg-value {
    font-size: 1.75rem;
    min-width: 3rem;
  }

  .basalam-star-chips {
    justify-content: center;
  }
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  container-type: inline-size;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.project-card-clickable {
  cursor: pointer;
}

.project-card-clickable:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}

.project-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.project-filters-bar.is-compact {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.85rem;
}

.project-filters-bar-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 0;
  min-width: 0;
}

.project-filters-bar.is-compact .project-filter-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.project-filters-trigger {
  display: none;
}

.project-filters-bar.is-compact .project-filters-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.project-filters-bar.is-compact .project-filters-trigger:hover {
  border-color: #94a3b8;
  background: var(--bg-soft);
}

.project-filters-bar.is-compact .project-filters-trigger.has-active {
  border-color: var(--brand-gold);
  background: var(--brand-gold-soft);
}

.project-filters-trigger-icon {
  display: block;
  flex-shrink: 0;
}

.project-filters-trigger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.project-filter-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-filter-inline--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.project-filter-inline--stack:last-child {
  margin-bottom: 0;
}

.project-filter-label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.project-filter-label::after {
  content: ":";
}

.project-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-filter {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.project-filter:hover {
  color: var(--text);
  border-color: #94a3b8;
}

.project-filter.active {
  color: var(--text);
  border-color: var(--brand-gold);
  background: var(--brand-gold-soft);
}

.project-filters-dialog {
  max-width: 28rem;
  width: min(28rem, 100%);
  padding: 1.15rem 1.25rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-height: min(88vh, calc(100dvh - 2rem));
  overflow-x: hidden;
  overflow-y: auto;
}

.project-filters-dialog .project-modal-back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.1rem 0;
  flex-shrink: 0;
}

.project-filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.project-filters-modal-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.project-filters-clear-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
}

.project-filters-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
}

.project-filters-modal-body .project-filter-inline--stack {
  margin-bottom: 0;
  gap: 0.55rem;
}

.project-filters-modal-body .project-filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.project-filters-modal-body .project-filter-chips {
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .project-filters-bar.is-compact {
    padding: 0.5rem 0.65rem;
    gap: 0.4rem 0.5rem;
  }

  .project-filters-bar.is-compact .project-filters-trigger {
    font-size: 0.74rem;
    padding: 0.3rem 0.55rem;
  }

  .project-filters-bar.is-compact .project-filter {
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
  }
}

.project-cover {
  position: relative;
  overflow: hidden;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-cover-ribbon {
  position: absolute;
  top: 14px;
  left: -34px;
  z-index: 2;
  width: 148px;
  padding: 0.38rem 0;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-42deg);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}

.project-body {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.project-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-status {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.project-repayment-model {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--brand-gold-rgb), 0.45);
  white-space: nowrap;
  color: var(--text);
  background: var(--brand-gold-soft);
}

.project-status-active {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.project-status-closing_soon {
  color: var(--warning);
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.12);
}

.project-status-funded {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
}

.project-category {
  font-size: 0.82rem;
  color: var(--muted);
}

.project-title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  min-height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-seller {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.project-risk-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.82rem;
}

.project-risk-link:hover {
  text-decoration: underline;
}

.project-desc {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-funding {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--accent-soft) 0%, #f8fafc 55%, #fff 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.project-funding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.project-funding-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.project-funding-pct {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.project-funding-words {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

.project-funding-toman,
.project-funding-rial {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.project-funding .project-progress-bar {
  height: 12px;
  margin-bottom: 0.55rem;
}

.project-funding-raised {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.project-funding-raised strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.project-progress {
  margin-bottom: 1rem;
}

.project-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-inset);
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.project-progress-fill {
  height: 100%;
  border-radius: inherit;
  /* زرد برند → زرد کمی متمایل به سرمه‌ای (نه آبی کامل) */
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-deep));
}

.project-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.project-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.5rem;
  text-align: center;
}

.project-stat .label {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.project-stat strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.project-stat-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-stat-guarantee strong {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
  white-space: normal;
}

.project-risk.risk-low { color: var(--success); }
.project-risk.risk-medium { color: var(--warning); }
.project-risk.risk-high { color: var(--danger); }
.project-risk.risk-unknown { color: var(--muted); }

.project-stat .project-risk-score {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.project-modal-kpi .project-risk-score {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.gift-box-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.gift-box-icon--hero {
  padding: 0.45rem;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
}

.invite-friends-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-project-invite {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .btn-project-invite:hover:not(:disabled) {
    background: var(--bg-soft);
    border-color: #cbd5e1;
  }
}

.project-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.invite-friends-page .invite-friends-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.invite-friends-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.invite-friends-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.invite-friends-link-row .btn-modal-submit {
  width: auto;
  min-width: 7.5rem;
  white-space: nowrap;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.invite-friends-link-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-soft);
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1, "liga" 0, "calt" 0;
  font-variant-ligatures: none;
  unicode-bidi: isolate;
}

.invite-friends-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.invite-friends-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--bg-soft);
}

.invite-friends-stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.invite-friends-stat strong {
  font-size: 1rem;
}

.invite-friends-panel + .invite-friends-panel,
.invite-friends-hero + .invite-friends-panel {
  margin-top: 1rem;
}

.invite-friends-formula-compact {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 59, 101, 0.18);
  background: linear-gradient(135deg, rgba(14, 59, 101, 0.08), rgba(255, 195, 0, 0.12));
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  text-align: center;
}

.invite-friends-formula-steps {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.invite-friends-formula-steps li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.invite-friends-formula-steps strong {
  font-size: 0.86rem;
  color: var(--text);
}

.invite-friends-formula-steps span {
  font-size: 0.84rem;
  color: var(--muted);
}

.invite-friends-formula-example {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
}

.invite-friends-formula-example-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.invite-friends-formula-example p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.invite-friends-formula-example-list {
  margin: 0;
  padding-right: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text);
}

.invite-friends-formula-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.invite-friends-table-wrap {
  overflow-x: auto;
}

.invite-friends-table {
  min-width: 100%;
}

@media (max-width: 640px) {
  .project-actions,
  .project-modal-actions {
    grid-template-columns: 1fr;
  }

  .invite-friends-stats {
    grid-template-columns: 1fr;
  }

  .invite-friends-link-row {
    grid-template-columns: 1fr;
  }

  .invite-friends-link-row .btn-modal-submit {
    width: 100%;
  }
}

.btn-project-details,
.btn-project-invest {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-project-details {
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-project-details:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
}

.btn-project-invest {
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.38);
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-project-invest:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.48);
}

.btn-project-invest-urgent {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 4px 18px rgba(var(--accent-rgb), 0.34),
    0 0 0 1px rgba(var(--brand-gold-rgb), 0.28);
}

.btn-project-invest-urgent:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow:
    0 6px 22px rgba(var(--accent-rgb), 0.44),
    0 0 0 1px rgba(var(--brand-gold-rgb), 0.36);
}

.btn-project-invest:disabled,
.btn-project-invest-disabled {
  background: var(--bg-soft);
  color: var(--muted);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

.project-actions .project-risk-link {
  flex-shrink: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

@container (max-width: 300px) {
  .project-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.project-modal.hidden {
  display: none !important;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 37, 48, 0.45);
  backdrop-filter: blur(4px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(92vh, calc(100dvh - 1.5rem));
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-modal-content {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.project-modal-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.project-modal-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.project-modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.project-modal-close-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.project-modal-back-link {
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.75rem;
}

.project-modal-title {
  margin: 0;
  text-align: right;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

.project-modal-title-name {
  color: #8f6f08;
  font-weight: 800;
}

.pm-profile-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #8f6f08;
}

.project-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.project-modal-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-inline-end: 0.85rem;
}

.project-modal-main > :empty {
  display: none;
}

.pm-trust-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.85rem;
  align-items: start;
}

.pm-trust-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.project-modal-side {
  position: static;
  top: auto;
  min-width: 0;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-inline-start: 1px solid var(--border);
  padding: 0;
  padding-inline-start: 1.25rem;
  padding-inline-end: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.pm-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pm-side-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.pm-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.pm-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.pm-section-title-row .pm-section-title {
  margin: 0;
}

.pm-profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0;
}

.pm-profile-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.pm-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), var(--brand-gold));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.pm-avatar--img {
  padding: 0;
  background: var(--surface-inset, #e2e8f0);
  border: 1px solid var(--border);
}

.pm-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pm-profile-bio {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
}

.pm-profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pm-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}

.pm-profile-role,
.pm-profile-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.pm-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.pm-profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.pm-profile-tag-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.pm-channels {
  margin-bottom: 0;
}

.pm-channels-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.pm-channel-card {
  background: var(--accent-soft);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
  gap: 0.7rem;
  min-height: 0;
  box-shadow: none;
  transition: background 0.15s ease;
}

.pm-channel-card:hover {
  background: rgba(var(--accent-rgb), 0.12);
  transform: none;
}

.pm-channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pm-channel-card-identity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}

.pm-channel-card-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pm-channel-platform {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.pm-channel-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  object-fit: contain;
  background: var(--card);
  border: none;
  padding: 0.3rem;
  margin-bottom: 0;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.08);
}

.pm-channel-logo.is-fallback {
  display: inline-block;
  background: var(--card);
  position: relative;
}

.pm-channel-logo.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.pm-channel-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
  max-width: 100%;
}

.pm-channel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.pm-channel-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  min-width: 0;
}

.pm-channel-metric-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.pm-channel-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.pm-channel-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.pm-channel-star {
  color: var(--brand-gold-deep);
  font-size: 0.95rem;
  line-height: 1;
}

.pm-channel-sales-num {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pm-channel-sales-label {
  white-space: nowrap;
}

.pm-channel-leaderboard-tags {
  justify-content: center;
  margin-top: 0.1rem;
}

.pm-channel-card .pm-channel-ranks-section {
  margin-top: 0.85rem;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(var(--brand-gold-rgb), 0.16) 0%,
    rgba(var(--accent-rgb), 0.05) 55%,
    rgba(255, 255, 255, 0.92) 100%
  );
  border: 1px solid rgba(var(--brand-gold-rgb), 0.3);
  box-shadow: none;
}

.pm-channel-ranks-section {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(var(--brand-gold-rgb), 0.18) 0%,
    rgba(var(--accent-rgb), 0.06) 55%,
    rgba(255, 255, 255, 0.94) 100%
  );
  border: 1px solid rgba(var(--brand-gold-rgb), 0.34);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.08);
}

.pm-channel-ranks-head {
  margin-bottom: 0.55rem;
}

.pm-channel-ranks-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

.pm-channel-ranks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.pm-channel-ranks-item {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.pm-channel-ranks-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  margin-inline: 0.1rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: var(--brand-gold);
  color: var(--text);
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 1px 4px rgba(var(--brand-gold-rgb), 0.35);
}

.pm-channel-ranks-category {
  color: var(--accent);
  font-weight: 800;
}

.pm-channel-ranks-item.is-extra.hidden {
  display: none;
}

.pm-channel-ranks-more {
  margin-top: 0.55rem;
  border: none;
  background: transparent;
  color: var(--accent);
  border-radius: 8px;
  padding: 0.35rem 0.1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pm-channel-ranks-more:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.pm-channel-card .store-leaderboard-category {
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.pm-channel-card .leaderboard-rank-badge {
  min-width: 1.55rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
}

.pm-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: help;
  outline: none;
}

.pm-info-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  background: var(--card);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pm-info-tip:hover .pm-info-tip-icon,
.pm-info-tip:focus-visible .pm-info-tip-icon {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
  background: var(--accent-soft);
}

.pm-info-tip-text {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(17.5rem, 72vw);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.pm-info-tip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

.pm-info-tip:hover .pm-info-tip-text,
.pm-info-tip:focus-visible .pm-info-tip-text,
.pm-info-tip:focus-within .pm-info-tip-text {
  opacity: 1;
  visibility: visible;
}

.pm-channel-cta {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: auto;
  flex-shrink: 0;
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.pm-channel-cta:hover {
  background: var(--card);
  color: var(--accent-hover);
}

.pm-channel-cta.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.pm-channel-cta-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.pm-channels-more {
  margin-top: 0.5rem;
  border: none;
  background: transparent;
  color: var(--accent);
  border-radius: 8px;
  padding: 0.4rem 0.15rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pm-channels-more:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.pm-twitter-verified {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.pm-twitter-verified svg {
  display: block;
}

.pm-skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.12) 45%,
    rgba(15, 23, 42, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: pm-skeleton-pulse 1.2s ease-in-out infinite;
}

.pm-skeleton-line {
  height: 0.75rem;
  width: 100%;
  margin-top: 0.45rem;
}

.pm-skeleton-line.is-lg {
  height: 1rem;
  width: 72%;
}

.pm-skeleton-line.is-sm {
  width: 48%;
}

.pm-skeleton-title {
  height: 1.6rem;
  width: min(100%, 28rem);
  margin: 0.2rem 0 1rem;
}

.pm-skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.pm-skeleton-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
}

.pm-skeleton-stack {
  flex: 1;
  min-width: 0;
}

.pm-skeleton-card {
  pointer-events: none;
}

.pm-skeleton-video {
  padding: 0.75rem;
  margin-bottom: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.03);
}

.pm-skeleton-progress {
  height: 0.65rem;
  width: 100%;
  margin-bottom: 0.65rem;
}

.pm-skeleton-input {
  height: 2.6rem;
  width: 100%;
  margin: 0.55rem 0;
}

.pm-skeleton-btn {
  height: 2.7rem;
  width: 100%;
  border-radius: 12px;
}

.pm-skeleton-btn.is-secondary {
  width: 70%;
  opacity: 0.7;
}

@keyframes pm-skeleton-pulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.pm-video-card {
  display: block;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0;
  overflow: visible;
  min-height: 8rem;
}

.pm-video-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 7rem;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.pm-video-thumb {
  position: relative;
  flex: 0 0 11rem;
  width: 11rem;
  height: 7rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-inset);
}

.pm-video-thumb img,
.pm-video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-video-placeholder {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-inset));
}

.pm-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(28, 37, 48, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  pointer-events: none;
}

.pm-video-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
}

.pm-video-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.pm-video-btn {
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.pm-video-player-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-video-player-heading {
  margin: 0;
  font-size: 1.05rem;
}

.pm-video-player {
  width: 100%;
  max-height: min(70vh, 520px);
  border-radius: 14px;
  background: #0f172a;
}

.project-modal-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-inset);
  margin-bottom: 0;
}

.project-modal-image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.project-modal-description-block {
  margin: 0;
}

.project-modal-description-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.project-modal-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-line;
}

.project-modal-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0;
}

.project-modal-kpi {
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 8px;
  padding: 0.7rem 0.5rem;
  text-align: center;
}

.project-modal-kpi strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.project-modal-kpi span {
  font-size: 0.72rem;
  color: var(--muted);
}

.project-modal-progress-block {
  margin-bottom: 0;
}

.project-modal-progress-head,
.project-modal-progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.project-modal-progress-foot {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.pm-progress-foot strong {
  color: var(--text);
  font-weight: 700;
}

.project-modal-progress-bar {
  height: 10px;
}

.pm-credibility {
  margin-top: 0;
}

.pm-credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.pm-cred-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.65rem;
  text-align: center;
}

.pm-cred-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.pm-cred-value {
  font-size: 0.95rem;
  color: var(--text);
}

.pm-repayment-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: none;
  background: var(--brand-gold-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.pm-repayment-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--brand-gold);
  color: var(--text);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.pm-guarantee-list {
  display: grid;
  gap: 0.5rem;
}

.pm-guarantee-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: var(--accent-soft);
  border: none;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
}

.pm-guarantee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pm-guarantee-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.pm-guarantee-status {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.pm-side-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0;
}

.pm-side-actions .btn-modal-submit,
.pm-side-actions .btn-project-invite {
  width: 100%;
}

.pm-secure-note {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.pm-footer-bar {
  display: none;
}

.pm-save-btn,
.pm-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pm-start-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  width: 100%;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.38);
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pm-start-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.48);
}

.pm-start-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.project-modal-meta-rows {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.project-modal-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}

.project-modal-meta-row:last-child {
  border-bottom: none;
}

.project-modal-meta-row span {
  color: var(--muted);
}

.project-modal-highlights {
  margin-bottom: 1rem;
}

.project-modal-highlights-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.project-modal-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.project-modal-highlight {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  text-align: center;
}

.project-modal-highlight-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.project-modal-highlight-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.project-modal-highlight-value.is-up {
  color: #15803d;
}

.project-modal-highlight-value.is-down {
  color: #b91c1c;
}

.project-modal-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 1rem;
}

.project-modal-guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-modal-guarantee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.84rem;
}

.project-modal-guarantee-row span {
  color: var(--muted);
}

.project-modal-guarantee-row strong {
  color: var(--text);
  white-space: nowrap;
}

.project-modal-guarantee-item {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.6;
}

.project-modal-guarantee-item p {
  margin: 0;
  color: var(--text);
}

.project-modal-guarantee-status {
  margin-top: 0.35rem !important;
  color: var(--muted);
  font-size: 0.8rem;
}

.project-modal-seller-stats-wrap {
  margin-top: 0;
  padding: 0.75rem;
  border: none;
  background: transparent;
}

.project-modal-seller-stats-wrap .project-modal-highlights-grid {
  margin: 0;
}

@media (max-width: 720px) {
  .project-modal-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.project-modal-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.project-modal-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.project-modal-side .project-modal-panel + .project-modal-panel {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-modal-side .project-modal-panel h3 {
  color: var(--text);
  font-size: 0.84rem;
}

.project-modal-seller-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.project-modal-info-chip {
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
}

.project-modal-info-chip:last-child {
  margin-bottom: 0;
}

.chip-blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-amber {
  background: var(--brand-gold-soft);
  color: var(--text);
  border: none;
}

.project-modal-wallet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.project-modal-wallet-item {
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}

.project-modal-wallet-item span {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.project-modal-wallet-item strong {
  font-size: 0.88rem;
}

.wallet-payable {
  background: var(--accent-soft);
  border: none;
  color: var(--text);
}

.wallet-total {
  background: rgba(var(--brand-gold-rgb), 0.12);
  border: none;
  color: var(--text);
}

.project-modal-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.project-modal-input-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.project-modal-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-modal-amount-input {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: var(--card);
  color: var(--text);
}

.project-modal-amount-input.is-empty {
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow: none;
}

.project-modal-amount-input.is-empty::placeholder {
  color: var(--muted);
  opacity: 1;
}

.project-modal-amount-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.15);
}

.project-modal-amount-input.is-empty:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.project-modal-amount-feedback {
  margin-top: 0.45rem;
  min-height: 3.35rem;
}

.project-modal-amount-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  min-height: 1.5em;
}

.project-modal-amount-value .value-ltr {
  font-weight: 700;
}

.project-modal-amount-status {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  min-height: 1.5em;
}

.project-modal-amount-status.error {
  color: var(--danger);
}

.project-modal-amount-status.success {
  color: var(--success);
}

.project-modal-deposit-summary {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
}

.project-modal-deposit-summary p {
  margin: 0.25rem 0;
}

.project-modal-funding-preference {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.project-modal-funding-preference-title {
  margin: 0 0 0.15rem;
}

.project-modal-payment-mode {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.project-modal-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-soft);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.55;
}

.project-modal-payment-option:has(input:checked) {
  background: rgba(var(--brand-gold-rgb), 0.14);
}

.project-modal-payment-option input {
  margin-top: 0.2rem;
}

.project-modal-payment-warning {
  color: var(--danger);
  font-weight: 600;
}

.btn-modal-calc {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-modal-calc:hover {
  background: var(--bg-soft);
}

.project-modal-installment-result {
  position: relative;
  margin-top: 0.75rem;
  min-height: 8rem;
  max-height: 18rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: none;
  font-size: 0.85rem;
  line-height: 1.7;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-modal-profit-empty {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.project-modal-profit-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.project-modal-profit-summary {
  display: grid;
  gap: 0.2rem;
  font-size: 0.84rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.project-modal-payouts-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-modal-payouts-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.project-modal-payouts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-modal-payout-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: none;
}

.project-modal-payout-item.is-final {
  background: rgba(var(--brand-gold-rgb), 0.16);
}

.project-modal-payout-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.project-modal-payout-label {
  font-size: 0.8rem;
  font-weight: 700;
}

.project-modal-payout-detail {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.project-modal-payout-amount {
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-modal-payout-empty {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.project-modal-profit-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-modal-profit-line {
  min-height: 1.445rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-modal-profit-line.is-empty {
  visibility: hidden;
}

.project-modal-profit-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--muted);
  background: var(--card);
  z-index: 1;
}

.project-modal-max {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.project-modal-auth-msg {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.project-modal-auth-msg.error {
  color: #b91c1c;
}

.project-modal-auth-msg.success {
  color: #166534;
}

.project-modal-auth-msg.info {
  color: var(--muted);
}

.btn-modal-logout {
  margin-top: 0.75rem;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-modal-logout:hover {
  background: var(--bg-soft);
}

#modal-auth-panel .btn-modal-submit,
#modal-auth-panel .btn-modal-calc {
  margin-top: 0;
}

.project-modal-auth {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.project-modal-auth > h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}

.project-modal-auth .project-modal-hint {
  margin: 0 0 1rem;
}

.project-modal-auth-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-modal-auth-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.project-modal-auth-field .project-modal-input-label {
  margin-bottom: 0.4rem;
}

.project-modal-auth-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--text);
}

.project-modal-auth-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.project-modal-auth-input:read-only {
  background: var(--bg-soft);
  color: var(--muted);
}

.project-modal-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.project-modal-auth-actions .btn-modal-submit {
  margin-top: 0;
}

.btn-modal-submit {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.38);
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-modal-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.48);
}

.btn-modal-submit:disabled {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.btn-modal-submit.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  opacity: 0.92;
  cursor: wait;
}

.btn-modal-submit.is-loading .spinner {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
  border-top-color: #fff;
}

.btn-primary.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: wait;
  opacity: 0.92;
}

.btn-primary.is-loading .spinner {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
  border-top-color: currentColor;
}

.btn-modal-risk {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-modal-risk:hover {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.35);
}

/* Internal modal items — 8px radius (aligned with project card innards) */
.project-modal .project-modal-side,
.project-modal .pm-profile-card,
.project-modal .pm-profile-tag,
.project-modal .pm-channel-card,
.project-modal .pm-channel-logo,
.project-modal .pm-channel-cta,
.project-modal .pm-channels-more,
.project-modal .pm-video-card,
.project-modal .pm-video-open,
.project-modal .pm-video-thumb,
.project-modal .pm-video-player,
.project-modal .project-modal-image,
.project-modal .project-modal-kpi,
.project-modal .pm-cred-card,
.project-modal .pm-repayment-card,
.project-modal .pm-guarantee-item,
.project-modal .project-modal-meta-rows,
.project-modal .project-modal-panel,
.project-modal .project-modal-info-chip,
.project-modal .project-modal-wallet-item,
.project-modal .project-modal-highlight,
.project-modal .project-modal-guarantee-row,
.project-modal .project-modal-guarantee-item,
.project-modal .project-modal-amount-input,
.project-modal .project-modal-deposit-summary,
.project-modal .project-modal-payment-option,
.project-modal .project-modal-installment-result,
.project-modal .project-modal-payout-item,
.project-modal .pm-info-tip-text,
.project-modal .pm-skeleton,
.project-modal .pm-skeleton-video,
.project-modal .pm-skeleton-btn,
.project-modal .btn-modal-submit,
.project-modal .btn-modal-secondary,
.project-modal .btn-modal-risk,
.project-modal .btn-modal-calc,
.project-modal .btn-modal-logout,
.project-modal .pm-start-btn,
.project-modal .pm-save-btn,
.project-modal .project-modal-auth-input,
.project-modal .btn-project-invite {
  border-radius: 8px;
}

@keyframes project-sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes project-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes project-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 821px) {
  .project-modal:not(.hidden) .project-modal-backdrop {
    animation: project-backdrop-in 0.16s ease-out;
  }

  .project-modal:not(.hidden) .project-modal-dialog {
    animation: project-modal-in 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
}

@media (max-width: 820px) {
  .project-modal {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
  }

  .project-modal:not(.hidden) .project-modal-backdrop {
    animation: project-backdrop-in 0.25s ease-out;
  }

  .project-modal-dialog {
    width: 100%;
    max-width: none;
    max-height: min(82vh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
    margin: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(28, 37, 48, 0.18);
    display: flex;
    flex-direction: column;
    animation: project-sheet-up 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .project-modal-dialog::before {
    content: "";
    flex-shrink: 0;
    width: 36px;
    height: 4px;
    margin: 0.55rem auto 0;
    background: #d1d5db;
    border-radius: 999px;
  }

  .project-modal-content {
    flex: 1;
    min-height: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0;
    scrollbar-gutter: auto;
  }

  .project-modal-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: none;
    min-height: auto;
  }

  .project-modal-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    gap: 1rem;
    padding-block: 1rem;
    padding-inline: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    flex: none;
    min-height: auto;
    overflow: visible;
    align-items: start;
  }

  .project-modal-main {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    box-sizing: border-box;
    margin: 0;
    gap: 1rem;
    overflow: visible;
    scrollbar-gutter: auto;
    padding-inline-end: 0;
  }

  .pm-trust-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .project-modal-side {
    position: static;
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-inline-start: none;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    gap: 1rem;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .pm-profile-card,
  .pm-channels,
  .pm-video-card,
  .pm-credibility,
  .project-modal-description-block,
  .project-modal-progress-block,
  .project-modal-kpis {
    margin-inline: 0;
    max-width: 100%;
  }

  .pm-channels-list,
  .pm-credibility-grid,
  .project-modal-kpis {
    width: 100%;
  }

  .project-modal-image img {
    height: 200px;
  }

  .project-modal-title {
    font-size: 1.05rem;
    margin-bottom: 0;
  }

  .project-modal-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-credibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-channel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pm-channel-card-top {
    align-items: flex-start;
  }

  .pm-channel-cta {
    width: 100%;
  }

  .pm-video-card {
    min-height: 0;
  }

  .pm-video-open {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .pm-video-thumb {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 10rem;
  }

  .pm-footer-bar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-block: 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    padding-inline: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }

  .project-modal-kpi {
    padding: 0.65rem 0.4rem;
  }

  .project-modal-kpi strong {
    font-size: 1rem;
  }

  .project-modal-kpi span {
    font-size: 0.72rem;
  }

  .project-modal-dialog.project-modal-dialog-sm {
    max-width: none;
    width: 100%;
  }

  #login-modal .project-modal-dialog {
    padding: 0.25rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  }

  #login-modal .project-modal-back-link {
    margin-bottom: 0.85rem;
  }

  .confirm-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-modal-actions .btn-modal-submit,
  .confirm-modal-actions .btn-modal-secondary {
    width: 100%;
  }
}

/* --- Risk page access gate --- */
.risk-access-gate {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.risk-access-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.risk-access-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.risk-access-gate .project-modal-auth {
  text-align: right;
}

.risk-access-gate #risk-logout-btn {
  margin-top: 0.5rem;
}

.risk-page-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.risk-page-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.risk-page-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.risk-page-nav a.is-active {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
}

.risk-watchlist-input-card {
  margin-bottom: 1rem;
}

.risk-watchlist-input-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.risk-watchlist-input-panel {
  margin-bottom: 0.85rem;
}

.risk-watchlist-input-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.risk-watchlist-textarea {
  width: 100%;
  min-height: 9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.6;
  background: var(--card);
  color: var(--text);
  resize: vertical;
}

.risk-watchlist-input-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.risk-watchlist-single-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.risk-watchlist-single-row .risk-watchlist-filter {
  flex: 1;
  min-width: 10rem;
}

.risk-watchlist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.risk-watchlist-chips-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.risk-watchlist-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.45rem 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  font-size: 0.8rem;
}

.risk-watchlist-chip-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.risk-watchlist-chip-remove:hover {
  color: var(--danger);
}

.risk-watchlist-input-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.risk-watchlist-input-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text);
}

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

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.risk-watchlist-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.risk-watchlist-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.risk-watchlist-filter {
  min-width: min(16rem, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  background: var(--card);
  color: var(--text);
}

.risk-watchlist-select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  background: var(--card);
  color: var(--text);
}

.risk-watchlist-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.risk-watchlist-summary strong {
  color: var(--text);
}

.risk-watchlist-errors {
  color: var(--danger);
  font-weight: 600;
}

.risk-watchlist-filtered {
  color: var(--accent);
}

.risk-watchlist-card {
  padding: 0;
  overflow: hidden;
}

.risk-watchlist-table-wrap {
  max-height: min(72vh, 900px);
  overflow: auto;
}

.risk-watchlist-table th,
.risk-watchlist-table td {
  white-space: nowrap;
  font-size: 0.8rem;
}

.risk-watchlist-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-inset);
}

.risk-watchlist-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.risk-watchlist-table th.sortable:hover {
  color: var(--accent);
}

.risk-watchlist-table th.sortable::after {
  display: inline-block;
  margin-inline-start: 0.25rem;
  opacity: 0.35;
  font-size: 0.68rem;
}

.risk-watchlist-table th.sort-asc::after {
  content: "▲";
  opacity: 1;
  color: var(--accent);
}

.risk-watchlist-table th.sort-desc::after {
  content: "▼";
  opacity: 1;
  color: var(--accent);
}

.risk-watchlist-row-error td {
  color: var(--danger);
}

.risk-watchlist-row-loading td {
  color: var(--muted);
}

.risk-watchlist-inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.risk-watchlist-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.25rem !important;
}

.risk-watchlist-columns-picker {
  position: relative;
}

.risk-watchlist-columns-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 30;
  min-width: 16rem;
  max-width: min(22rem, 92vw);
  max-height: min(28rem, 70vh);
  overflow: auto;
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.risk-watchlist-columns-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.risk-watchlist-columns-actions .btn-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.risk-watchlist-columns-actions .btn-link:hover {
  text-decoration: underline;
}

.risk-watchlist-column-group {
  margin-bottom: 0.75rem;
}

.risk-watchlist-column-group:last-child {
  margin-bottom: 0;
}

.risk-watchlist-column-group h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.risk-watchlist-column-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  cursor: pointer;
}

.risk-watchlist-column-option input[disabled] + span {
  opacity: 0.65;
}

.risk-watchlist-columns-hint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* --- Site topbar & auth --- */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 240, 0.97);
  border-bottom: 1px solid var(--border);
  --site-topbar-sticky-offset: 4.25rem;
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
}

.site-topbar-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-topbar-nav-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.site-topbar-nav-link.is-active:not(.site-topbar-nav-link--featured) {
  color: var(--text);
  background: var(--bg-soft);
}

.site-topbar-nav-link--featured {
  color: var(--text);
  background: var(--brand-gold);
  border: 1px solid var(--brand-gold);
  box-shadow: 0 1px 3px rgba(var(--brand-gold-rgb), 0.35);
}

.site-topbar-nav-link--featured:hover {
  color: var(--text);
  background: var(--brand-gold-hover);
  border-color: var(--brand-gold-hover);
}

.site-topbar-nav-link--featured.is-active {
  color: var(--text);
  background: var(--brand-gold-hover);
  border-color: var(--brand-gold-hover);
  box-shadow: 0 2px 8px rgba(var(--brand-gold-rgb), 0.45);
}

.site-topbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.site-topbar-brand-logo {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
}

.site-topbar-brand:hover {
  opacity: 0.9;
}

.site-auth-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-auth-wrap .site-topbar-fund-cta {
  white-space: nowrap;
  color: #1f2937;
  background: #eceff3;
  border: 1px solid var(--border);
  box-shadow: none;
}

.site-auth-wrap .site-topbar-fund-cta:hover {
  color: #1f2937;
  background: #e3e7ed;
  border-color: #d5d5ce;
}

.site-auth-wrap .site-topbar-fund-cta.site-topbar-nav-link--featured,
.site-auth-wrap .site-topbar-fund-cta.is-active {
  color: var(--text);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  box-shadow: 0 1px 3px rgba(var(--brand-gold-rgb), 0.35);
}

.site-auth-wrap .site-topbar-fund-cta.site-topbar-nav-link--featured:hover,
.site-auth-wrap .site-topbar-fund-cta.is-active:hover {
  color: var(--text);
  background: var(--brand-gold-hover);
  border-color: var(--brand-gold-hover);
  box-shadow: 0 2px 8px rgba(var(--brand-gold-rgb), 0.45);
}

.site-support-btn {
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #eceff3;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-support-btn:hover {
  background: #e3e7ed;
  border-color: #d5d5ce;
}

.site-support-btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.site-login-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.site-login-btn:hover {
  background: var(--bg-soft);
}

.site-user-menu {
  position: relative;
}

.site-user-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.4rem;
  border: 1px solid var(--border);
  background: #eceff3;
  border-radius: 999px;
  padding: 0 0.72rem 0 0.55rem;
  font: inherit;
  cursor: pointer;
  max-width: 220px;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-user-trigger:hover {
  background: #e3e7ed;
  border-color: #d5d5ce;
}

.site-user-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: transparent;
  color: #334155;
}

.site-user-avatar--sm {
  width: 1.35rem;
  height: 1.35rem;
}

.site-user-avatar--icon {
  background: transparent;
  color: #334155;
}

.site-user-avatar-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.site-user-avatar--img {
  padding: 0;
  overflow: hidden;
  background: #d7dde6;
  width: 1.55rem;
  height: 1.55rem;
}

.site-user-avatar--sm.site-user-avatar--img {
  width: 1.35rem;
  height: 1.35rem;
}

.site-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-user-trigger-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
}

.site-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.site-user-trigger-mobile {
  font-size: 0.72rem;
  color: var(--muted);
  direction: ltr;
  unicode-bidi: plaintext;
}

.site-user-chevron {
  display: none;
}

.site-user-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  width: min(19rem, calc(100vw - 1.5rem));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 100;
  transform-origin: top right;
}

.site-user-dropdown:not(.hidden) {
  animation: site-user-dropdown-in 0.13s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes site-user-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-user-backdrop {
  display: none;
}

.site-user-dropdown-handle {
  display: none;
}

.site-user-dropdown-wallet {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.site-user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.site-user-dropdown-head--link {
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  margin: -0.2rem -0.2rem 0.65rem;
  padding: 0.35rem 0.35rem;
  transition: background 0.12s ease;
}

.site-user-dropdown-head--link:hover {
  background: var(--bg-soft);
}

.site-user-dropdown-head--link:hover .site-user-dropdown-name-chevron {
  color: var(--accent-hover);
}

.site-user-dropdown-head .site-user-avatar {
  width: 2.35rem;
  height: 2.35rem;
}

.site-user-dropdown-head .site-user-avatar--img {
  width: 2.35rem;
  height: 2.35rem;
}

.site-user-identity {
  min-width: 0;
  flex: 1;
}

.site-user-dropdown-profile-name {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.site-user-dropdown-profile-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-dropdown-name-chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: color 0.12s ease, transform 0.12s ease;
}

.site-user-dropdown-head--link:hover .site-user-dropdown-name-chevron {
  transform: translateX(-2px);
}

.site-user-dropdown-profile-mobile {
  margin-top: 0.15rem;
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  direction: ltr;
  unicode-bidi: plaintext;
}

.site-user-dropdown-wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.site-user-wallet-card {
  border-radius: 12px;
  padding: 0.65rem 0.55rem;
  text-align: center;
}

.site-user-wallet-card span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  color: inherit;
  opacity: 0.85;
}

.site-user-wallet-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.site-user-wallet-card strong small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.site-user-wallet-card--available {
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #166534;
}

.site-user-wallet-card--balance {
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: #1e40af;
}

.site-user-dropdown-wallet-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-user-dropdown-loading-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-user-dropdown-wallet.is-refreshing {
  position: relative;
}

.site-user-dropdown-wallet.is-refreshing .site-user-wallet-card strong {
  opacity: 0.45;
}

.site-user-wallet-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
}

.site-user-dropdown-nav {
  padding: 0.15rem 0 0.35rem;
}

.site-user-dropdown-section + .site-user-dropdown-section {
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.site-user-dropdown-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  opacity: 0.78;
}

.site-user-dropdown-section-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-hover);
  opacity: 0.95;
}

.site-user-dropdown-item--with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-user-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: right;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.site-user-dropdown-item:hover {
  background: var(--bg-soft);
  color: var(--accent-hover);
}

.site-user-dropdown-item--logout {
  color: var(--muted);
}

.site-user-dropdown-item--logout:hover {
  color: var(--danger);
  background: #fef2f2;
}

.project-modal-dialog-sm {
  max-width: 420px;
  width: min(420px, 100%);
  box-sizing: border-box;
}

.project-modal-dialog-sm > .project-modal-content {
  padding: 1.35rem 1.4rem 1.4rem;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.project-modal-dialog-sm .project-modal-title {
  margin: 0 0 0.7rem;
}

.project-modal-dialog-sm .project-modal-hint {
  margin: 0 0 1rem;
}

.project-modal-dialog-sm .project-modal-auth-msg {
  margin: 0 0 0.85rem;
}

.project-modal-dialog-sm .confirm-modal-actions {
  margin-top: 0.35rem;
}

#login-modal .project-modal-dialog {
  padding: 1.15rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
}

#login-modal .project-modal-back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.1rem 0;
  flex-shrink: 0;
}

#login-modal-content {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.invite-journey-dialog {
  padding: 1.1rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-height: min(88vh, calc(100dvh - 2rem));
  overflow-x: hidden;
  overflow-y: auto;
}

.invite-journey-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.invite-journey-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.invite-journey-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.invite-journey-reward-tip {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 59, 101, 0.14);
  background: rgba(255, 195, 0, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

.invite-journey-card-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.invite-journey-card-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.invite-journey-card-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #0e3b65;
}

.invite-journey-card-image.is-loading {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.invite-journey-card-skeleton {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 59, 101, 0.12) 0%,
    rgba(14, 59, 101, 0.22) 45%,
    rgba(14, 59, 101, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: pm-skeleton-pulse 1.2s ease-in-out infinite;
}

.invite-journey-card-skeleton.hidden {
  display: none;
}

.invite-journey-card-fallback {
  margin: 0;
  padding: 1.4rem 0.85rem;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px dashed var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.invite-journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.invite-journey-step-num {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.invite-journey-step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.invite-journey-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.invite-journey-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.invite-journey-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.invite-journey-link-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--bg-soft);
  color: var(--text);
  direction: ltr;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1, "liga" 0, "calt" 0;
  font-variant-ligatures: none;
  unicode-bidi: isolate;
}

.invite-journey-link-row .btn-modal-secondary {
  white-space: nowrap;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}

.invite-journey-message {
  width: 100%;
  box-sizing: border-box;
  min-height: 7.5rem;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.7;
  background: var(--card);
  color: var(--text);
}

.invite-journey-message:focus,
.invite-journey-link-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.invite-journey-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.invite-journey-actions .btn-modal-submit,
.invite-journey-actions .btn-modal-secondary {
  width: 100%;
}

@media (max-width: 820px) {
  #invite-journey-modal.project-modal {
    align-items: flex-end;
    padding-top: max(3.25rem, calc(env(safe-area-inset-top, 0px) + 2.75rem));
  }

  #invite-journey-modal .invite-journey-dialog {
    max-height: min(78dvh, calc(100dvh - 4.75rem - env(safe-area-inset-top, 0px)));
    padding: 0.25rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  }

  .invite-journey-link-row {
    grid-template-columns: 1fr;
  }
}

.page-header-left {
  text-align: right;
}

/* --- My investments page --- */
.investments-tabs {
  margin-bottom: 1.25rem;
}

.investments-tabs .tab-count {
  font-size: 0.85em;
  opacity: 0.8;
}

.my-investments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.my-investment-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  padding: 0.85rem;
  cursor: default;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.my-investment-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.my-investment-card-clickable:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--shadow-md);
}

.my-investment-thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.my-investment-thumb-empty {
  background: linear-gradient(135deg, var(--bg-soft), var(--border));
}

.my-investment-body {
  flex: 1;
  min-width: 0;
}

.my-investment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.my-investment-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.my-investment-title-wrap {
  display: grid;
  gap: 0.2rem;
}

.my-investment-project-id {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

.my-investment-status {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.status-pending {
  background: #fef9c3;
  color: #854d0e;
}

.status-draft {
  background: #e0f2fe;
  color: #0369a1;
}

.status-confirmed {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-refunded {
  background: #e0e7ff;
  color: #3730a3;
}

.my-investment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.my-investment-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.my-investment-pending-notice {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
}

.my-investment-pending-notice > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  color: #92400e;
}

.my-investment-pending-notice p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #78350f;
}

.my-investment-pending-notice p strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.my-investment-pay-remainder-summary {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.my-investment-pay-remainder-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.my-investment-pay-remainder-label {
  color: var(--muted);
  flex-shrink: 0;
}

.my-investment-pay-remainder-value {
  margin: 0;
  font-weight: 700;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.my-investment-wallet-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.my-investment-wallet-link:hover {
  color: #1e3a8a;
}

.project-modal-project-id {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-weight: 600;
}

.my-investment-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.btn-cancel-investment {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fff;
  color: #b91c1c;
  border-radius: 10px;
  padding: 0.38rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-cancel-investment:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.my-investment-card-clickable {
  cursor: pointer;
}

@media (max-width: 640px) {
  .my-investment-main {
    flex-direction: column;
    gap: 0.75rem;
  }

  .my-investment-thumb,
  .my-investment-thumb-empty {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 168px;
  }
}

.confirm-modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-modal-secondary {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-secondary:hover {
  background: var(--bg-soft);
}

.btn-modal-danger {
  background: #dc2626;
}

.btn-modal-danger:hover {
  background: #b91c1c;
}

.installments-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.installments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.installments-table th,
.installments-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.installments-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.installment-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.installment-paid .installment-badge {
  background: #dcfce7;
  color: #166534;
}

.installment-pending .installment-badge {
  background: #fef9c3;
  color: #854d0e;
}

.installment-upcoming .installment-badge {
  background: var(--accent-soft);
  color: #1e40af;
}

.installment-unpaid .installment-badge {
  background: #f3f4f6;
  color: #4b5563;
}

/* --- Future Opportunity card (last marketplace slot) --- */
.fo-card {
  --fo-ink: #4c1d95;
  --fo-ink-soft: #6d28d9;
  --fo-muted: #6b7280;
  --fo-soft: #f3e8ff;
  --fo-border: #c4b5fd;
  background:
    radial-gradient(circle at 50% 18%, rgba(196, 181, 253, 0.35), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  border: 1.5px dashed var(--fo-border);
  box-shadow: none;
}

.fo-card:hover {
  border-color: #a78bfa;
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.1);
}

.fo-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem 1.15rem;
  height: 100%;
  box-sizing: border-box;
}

.fo-card-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--fo-soft);
  color: var(--fo-ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.fo-card-visual {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 9.5rem;
  margin-top: -0.15rem;
}

.fo-card-visual img {
  display: block;
  width: min(100%, 11.5rem);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.fo-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--fo-ink);
}

.fo-card-desc {
  margin: 0;
  max-width: 22rem;
  color: var(--fo-muted);
  font-size: 0.82rem;
  line-height: 1.85;
}

.fo-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.15rem;
}

.fo-card-meta-item {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.fo-card-meta-icon {
  display: inline-grid;
  place-items: center;
  color: var(--fo-ink-soft);
}

.fo-card-meta-label {
  font-size: 0.68rem;
  color: #9ca3af;
  line-height: 1.35;
}

.fo-card-meta-item strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fo-ink);
  line-height: 1.4;
}

.fo-card-lifecycle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  padding-inline: 0.15rem;
}

.fo-card-lifecycle-track {
  position: absolute;
  inset-inline: 0.35rem;
  top: 50%;
  height: 0;
  border-top: 1.5px dashed #d8b4fe;
  transform: translateY(-50%);
  pointer-events: none;
}

.fo-card-lifecycle-node {
  position: relative;
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1.5px solid #c4b5fd;
  background: #fff;
  box-sizing: border-box;
}

.fo-card-lifecycle-node.is-active {
  border-color: var(--fo-ink-soft);
  background: var(--fo-ink-soft);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.16);
}

.fo-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: auto;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--fo-ink-soft);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.fo-card-cta:hover {
  background: #5b21b6;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.34);
}

.fo-card-cta-icon {
  display: inline-flex;
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .fo-card-visual {
    min-height: 8.25rem;
  }

  .fo-card-title {
    font-size: 1.1rem;
  }

  .fo-card-meta-item strong {
    font-size: 0.72rem;
  }

  .fo-card-cta {
    font-size: 0.84rem;
    padding: 0.78rem 0.9rem;
  }
}

/* --- Demand Discovery (legacy banner; kept for other surfaces) --- */
.demand-discovery {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.demand-discovery-banner {
  display: grid;
  grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1.6fr) minmax(7rem, 0.9fr);
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at 12% 78%, rgba(255, 195, 0, 0.12), transparent 42%),
    radial-gradient(circle at 88% 30%, rgba(14, 59, 101, 0.06), transparent 40%),
    #fff8ef;
  border: 1px solid rgba(14, 59, 101, 0.08);
  border-radius: calc(var(--radius-bento) + 4px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.demand-discovery-banner:hover {
  border-color: rgba(14, 59, 101, 0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.demand-discovery-banner:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 3px;
}

.demand-discovery-art {
  display: block;
  width: 100%;
  max-width: 11.5rem;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.demand-discovery-copy {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  text-align: right;
  min-width: 0;
}

.demand-discovery-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.55;
  color: #0e3b65;
}

.demand-discovery-text {
  margin: 0;
  max-width: 38rem;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #5a6f86;
}

.demand-discovery-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #0e3b65;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(14, 59, 101, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.demand-discovery-banner:hover .demand-discovery-cta {
  background: #0a2f52;
  box-shadow: 0 4px 14px rgba(14, 59, 101, 0.34);
}

.demand-discovery-cta-icon {
  display: inline-flex;
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .demand-discovery-banner {
    grid-template-columns: minmax(5.5rem, 0.75fr) minmax(0, 1fr) minmax(5.5rem, 0.75fr);
    gap: 0.5rem 0.75rem;
    padding: 1rem;
  }

  .demand-discovery-title {
    font-size: 1.05rem;
  }

  .demand-discovery-text {
    font-size: 0.82rem;
  }

  .demand-discovery-cta {
    font-size: 0.84rem;
    padding: 0.62rem 1rem 0.62rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .demand-discovery {
    margin-top: 1.35rem;
  }

  .demand-discovery-banner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "goal path"
      "copy copy";
    justify-items: center;
    gap: 0.35rem 0.75rem;
    padding: 1.1rem 1rem 1.2rem;
  }

  .demand-discovery-art--goal {
    grid-area: goal;
    max-width: 7.5rem;
  }

  .demand-discovery-art--path {
    grid-area: path;
    max-width: 7.5rem;
  }

  .demand-discovery-copy {
    grid-area: copy;
    justify-items: center;
    text-align: center;
    gap: 0.55rem;
  }

  .demand-discovery-text {
    font-size: 0.8rem;
    line-height: 1.75;
  }
}

/* --- Home top banners --- */
.home-top-banners {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.home-promo-card {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-promo-card:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow-md);
}

.home-promo-card--trust {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.home-promo-card--portfolio {
  align-content: center;
  background: linear-gradient(135deg, var(--brand-gold-soft), var(--card));
  border-color: rgba(var(--brand-gold-rgb), 0.35);
  color: inherit;
}

.home-promo-card--portfolio:hover {
  border-color: rgba(var(--brand-gold-rgb), 0.5);
  box-shadow: var(--shadow-md);
}

.home-promo-card-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.home-promo-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-gold-deep, #c9a012);
}

.home-promo-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
}

.home-promo-card--portfolio .home-promo-card-title {
  color: var(--text);
  font-size: 1.15rem;
}

.home-promo-card-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

.home-promo-card--portfolio .home-promo-card-text {
  color: var(--muted);
}

.home-promo-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.2rem;
}

.home-promo-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.home-promo-card-link:hover {
  text-decoration: underline;
}

.home-promo-card--portfolio .home-promo-card-link {
  color: var(--text);
  margin-top: 0.15rem;
}

.home-promo-card--portfolio:hover .home-promo-card-link {
  color: var(--accent);
}

.home-promo-card-art {
  display: block;
  width: auto;
  height: 4.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .home-top-banners {
    grid-template-columns: 1fr;
  }

  .home-promo-card--trust {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 560px) {
  .home-promo-card--trust {
    grid-template-columns: 1fr;
  }

  .home-promo-card-art {
    justify-self: center;
    height: 4.2rem;
  }
}

/* Legacy investor-guide banner helpers (kept for other pages) */
.home-top-banners > .investor-guide-banner {
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

/* --- Investor guide banner --- */
.investor-guide-banner {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--card-muted));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-bento);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.investor-guide-banner:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-sm);
}

.investor-guide-banner-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.investor-guide-banner-text {
  font-size: 0.84rem;
  color: var(--muted);
}

.investor-guide-banner-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15rem;
}

.investor-guide-banner-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.investor-guide-banner--trust,
.investor-guide-banner--start {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1.05rem;
  align-content: center;
}

.investor-guide-banner--trust:hover,
.investor-guide-banner--start:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow-md);
}

.investor-guide-banner--trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.investor-guide-banner--start {
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, var(--brand-gold-soft), var(--card));
  border-color: rgba(var(--brand-gold-rgb), 0.35);
}

.investor-guide-banner--trust .investor-guide-banner-title,
.investor-guide-banner--start .investor-guide-banner-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
}

.investor-guide-banner--trust .investor-guide-banner-text,
.investor-guide-banner--start .investor-guide-banner-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

.investor-guide-banner--start .investor-guide-banner-link {
  margin-top: 0.25rem;
  color: var(--text);
  font-weight: 700;
}

.investor-guide-banner--start:hover .investor-guide-banner-link {
  color: var(--accent);
}

.investor-guide-banner-art {
  display: block;
  width: auto;
  height: 4.75rem;
  object-fit: contain;
  flex-shrink: 0;
}

.investor-guide-page .guide-section h2,
.investor-guide-page .guide-toc-title,
.capital-security-page .guide-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.investor-guide-page .guide-section p,
.investor-guide-page .guide-section li,
.investor-guide-page .guide-faq-item p,
.capital-security-page .guide-section p,
.capital-security-page .guide-section li {
  margin: 0;
  line-height: 1.85;
  color: var(--text);
}

.investor-guide-page .guide-section p + p,
.investor-guide-page .guide-section p + ul,
.investor-guide-page .guide-section p + ol,
.investor-guide-page .guide-section p + dl,
.capital-security-page .guide-section p + p,
.capital-security-page .guide-section p + ul {
  margin-top: 0.75rem;
}

.capital-security-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  text-align: right;
}

.capital-security-hero-art {
  width: auto;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 1rem;
  overflow: hidden;
}

.capital-security-list {
  margin: 0.75rem 0 0;
  padding-right: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.capital-security-list li {
  line-height: 1.8;
}

.page-header-back {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.page-header-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.page-header-back a:hover {
  text-decoration: underline;
}

.guide-section-lead {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
  background: color-mix(in srgb, var(--primary) 4%, var(--card));
}

.guide-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.95;
}

.guide-toc-list {
  margin: 0;
  padding-right: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.guide-toc-list a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.guide-toc-list a:hover {
  text-decoration: underline;
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.guide-steps li {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-soft);
  border-radius: 14px;
  counter-increment: guide-step;
  position: relative;
  padding-right: 2.6rem;
}

.guide-steps {
  counter-reset: guide-step;
}

.guide-steps li::before {
  content: counter(guide-step);
  position: absolute;
  right: 0.85rem;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-steps strong {
  font-size: 0.92rem;
}

.guide-steps span {
  font-size: 0.86rem;
  color: var(--muted);
}

.guide-bullets {
  margin: 0;
  padding-right: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.guide-status-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.guide-status-item {
  display: grid;
  gap: 0.35rem;
}

.guide-status-item dt {
  margin: 0;
}

.guide-status-item dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

.guide-note {
  padding: 0.7rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  font-size: 0.86rem !important;
  color: #92400e !important;
}

.guide-cta-wrap {
  margin-top: 1rem !important;
}

.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.guide-cta-btn:hover {
  opacity: 0.92;
}

.guide-cta-btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.guide-faq {
  display: grid;
  gap: 0.5rem;
}

.guide-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-soft);
}

.guide-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.guide-faq-item p {
  margin-top: 0.55rem !important;
  font-size: 0.86rem;
  color: var(--muted) !important;
}

@media (max-width: 640px) {
  .site-topbar-inner {
    gap: 0.45rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .site-topbar-brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-topbar-brand-logo {
    height: 2.5rem;
    max-width: 11rem;
  }

  .site-topbar-nav {
    flex: 0 0 auto;
    gap: 0.15rem;
  }

  .site-topbar-nav-link {
    font-size: 0.75rem;
    padding: 0.28rem 0.5rem;
  }

  .site-auth-wrap {
    flex-shrink: 0;
    gap: 0.3rem;
  }

  .site-auth-wrap .site-topbar-fund-cta {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
  }

  .site-support-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
  }

  .site-support-btn-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .site-user-trigger {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    gap: 0;
    max-width: none;
    border-radius: 0.65rem;
    justify-content: center;
    box-shadow: none;
  }

  .site-user-trigger-text {
    display: none !important;
  }

  .site-user-name {
    display: none;
  }

  .site-user-chevron {
    display: none !important;
  }

  .site-user-avatar--sm {
    width: 1.25rem;
    height: 1.25rem;
  }

  .site-user-avatar--sm.site-user-avatar--img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .site-user-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(28, 37, 48, 0.45);
    backdrop-filter: blur(4px);
  }

  .site-user-backdrop.hidden {
    display: none !important;
  }

  body.site-user-menu-open {
    overflow: hidden;
  }

  .site-user-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    min-height: 16rem;
    max-height: min(88dvh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(28, 37, 48, 0.12);
    z-index: 1101;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform-origin: bottom center;
  }

  .site-user-dropdown:not(.hidden) {
    animation: site-user-sheet-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-user-dropdown.hidden {
    display: none !important;
  }

  @keyframes site-user-sheet-in {
    from {
      transform: translateY(100%);
      opacity: 0.6;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .site-user-dropdown-handle {
    display: block;
    width: 2.5rem;
    height: 0.28rem;
    margin: 0.65rem auto 0;
    border-radius: 999px;
    background: var(--border);
  }

  .site-user-dropdown-wallet {
    padding: 0.75rem 1rem 1rem;
  }

  .site-user-dropdown-head {
    margin-bottom: 0.75rem;
  }

  .site-user-dropdown-head--link {
    margin: -0.15rem -0.15rem 0.55rem;
  }

  .site-user-dropdown-profile-name {
    white-space: normal;
    font-size: 0.95rem;
  }

  .site-user-dropdown-profile-name-text {
    white-space: normal;
  }

  .site-user-dropdown-section-title {
    padding: 0.8rem 1rem 0.4rem;
    font-size: 0.84rem;
  }

  .site-user-dropdown-profile-name-text {
    white-space: normal;
  }

  .site-user-dropdown-wallet-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .site-user-wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    text-align: right;
  }

  .site-user-wallet-card span {
    margin-bottom: 0;
    font-size: 0.78rem;
    flex: 1;
  }

  .site-user-wallet-card strong {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .site-user-dropdown-nav {
    padding: 0.25rem 0 0.5rem;
  }

  .site-user-dropdown-item {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }

  .site-login-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  .investor-guide-banner {
    margin-bottom: 1rem;
  }

  .home-top-banners {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .investor-guide-banner--trust {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 1rem;
  }

  .investor-guide-banner--start {
    text-align: center;
  }

  .investor-guide-banner--trust .investor-guide-banner-title,
  .investor-guide-banner--start .investor-guide-banner-title {
    font-size: 0.95rem;
  }

  .investor-guide-banner-art {
    height: 4.25rem;
    order: -1;
  }

  .capital-security-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .capital-security-hero-art {
    order: -1;
    height: 4.5rem;
  }
}

.fund-seeker-page .fund-seeker-placeholder {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.fund-seeker-page-back {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
}

.fund-seeker-page-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.fund-seeker-page-back a:hover {
  text-decoration: underline;
}

.fund-seeker-list-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.03));
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.fund-seeker-list-cta-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.fund-seeker-list-cta-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.fund-seeker-list-cta-text {
  flex: 1 1 14rem;
  min-width: 0;
}

.fund-seeker-list-new-btn {
  flex-shrink: 0;
  min-width: 11.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.28);
}

.fund-seeker-list-new-btn:hover {
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.34);
}

@media (max-width: 640px) {
  .fund-seeker-list-cta {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
  }

  .fund-seeker-list-cta-text {
    flex: 0 1 auto;
  }

  .fund-seeker-list-new-btn {
    width: 100%;
    min-width: 0;
    margin-top: 0.15rem;
  }
}

.fund-seeker-applications-list {
  display: grid;
  gap: 0.85rem;
}

.fund-seeker-list-loading,
.fund-seeker-list-empty {
  text-align: center;
}

.fund-seeker-boot-loading {
  margin: 0 0 1rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.fund-seeker-list-empty .fund-seeker-step-desc {
  margin-bottom: 1rem;
}

.fund-seeker-application-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}

.fund-seeker-application-card-pending {
  border-color: rgba(234, 179, 8, 0.35);
}

.fund-seeker-application-card .my-investment-card-actions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.fund-seeker-application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fund-seeker-download-contract {
  font: inherit;
  cursor: pointer;
}

.fund-seeker-application-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.fund-seeker-application-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.fund-seeker-application-meta,
.fund-seeker-application-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

.fund-seeker-application-meta strong,
.fund-seeker-application-foot span {
  color: var(--text);
}

.fund-seeker-application-foot {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.fund-seeker-step-actions .btn-primary,
.fund-seeker-step-actions .btn-secondary {
  text-decoration: none;
  text-align: center;
}

.fund-seeker-placeholder-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.fund-seeker-application-actions .fund-seeker-resume-btn {
  text-decoration: none;
  text-align: center;
}

.fund-seeker-page .fund-seeker-step {
  width: 100%;
  max-width: none;
}

.fund-seeker-amount-layout {
  display: grid;
  width: 100%;
  gap: 1.5rem;
}

.fund-seeker-process,
.fund-seeker-amount-panel {
  min-width: 0;
}

.fund-seeker-process-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.fund-seeker-process-intro {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
}

.fund-seeker-support-card {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.fund-seeker-support-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.fund-seeker-support-desc {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.fund-seeker-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fund-seeker-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fund-seeker-support-btn--chat {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.fund-seeker-support-btn--chat:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.fund-seeker-support-btn--phone {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  direction: ltr;
  font-family: inherit;
}

.fund-seeker-support-btn--phone:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
}

.fund-seeker-process-subtitle {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.fund-seeker-steps {
  margin-bottom: 1.15rem;
}

.fund-seeker-contract-box {
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.fund-seeker-contract-box > p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
}

.fund-seeker-contract-points {
  margin: 0;
}

.fund-seeker-process-note {
  margin: 0;
}

.fund-seeker-denied-risk {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.fund-seeker-denied-card {
  max-width: none;
  margin: 0 0 1.5rem;
  text-align: right;
}

.fund-seeker-denied-card .risk-access-title,
.fund-seeker-denied-card .risk-access-desc,
.fund-seeker-denied-card .fund-seeker-denied-risk {
  text-align: right;
}

.fund-seeker-denied-card .guide-bullets {
  padding-right: 1.25rem;
  padding-left: 0;
  text-align: right;
  list-style-position: outside;
}

.fund-seeker-denied-card .guide-bullets li {
  text-align: right;
}

.fund-seeker-denied-card #fund-seeker-logout-btn {
  margin-top: 0.25rem;
}

.fund-seeker-denied-detail {
  margin: 0 0 1.25rem;
}

.fund-seeker-denied-summary {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
  text-align: right;
}

.fund-seeker-denied-areas {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.fund-seeker-denied-area {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: right;
}

.fund-seeker-denied-area-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.fund-seeker-denied-subtitle {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.fund-seeker-denied-area-score {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 600;
}

.fund-seeker-denied-area-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.fund-seeker-denied-area-block + .fund-seeker-denied-area-block {
  margin-top: 0.65rem;
}

.fund-seeker-denied-tips li {
  color: var(--text);
}

.fund-seeker-denied-general {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  text-align: right;
}

.fund-seeker-denied-general .guide-bullets {
  margin: 0;
}

.fund-seeker-amount-panel {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.fund-seeker-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.fund-seeker-step-desc {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.fund-seeker-step-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
}

.fund-seeker-form {
  display: grid;
  gap: 0.65rem;
}

.fund-seeker-form-divider {
  height: 1px;
  margin: 0.35rem 0 0.15rem;
  background: var(--border);
}

.fund-seeker-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.fund-seeker-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
}

.fund-seeker-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.fund-seeker-input.is-invalid {
  border-color: var(--danger);
}

.fund-seeker-amount-preview {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

.fund-seeker-amount-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

.fund-seeker-credit-touchpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.fund-seeker-credit-touchpoint.hidden {
  display: none;
}

.fund-seeker-credit-touchpoint-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.fund-seeker-credit-touchpoint-detail {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.fund-seeker-credit-touchpoint-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.fund-seeker-credit-touchpoint-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fund-seeker-credit-touchpoint-link:hover {
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.fund-seeker-amount-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: -0.15rem;
}

.fund-seeker-amount-suggestions.hidden {
  display: none;
}

.fund-seeker-amount-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fund-seeker-amount-chip:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.fund-seeker-amount-chip.is-active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.fund-seeker-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.fund-seeker-review-list {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.fund-seeker-review-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.fund-seeker-review-list > div:last-child {
  border-bottom: none;
}

.fund-seeker-review-list dt {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

.fund-seeker-review-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.fund-seeker-review-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text);
}

.fund-seeker-form-error {
  margin: 0;
  font-size: 0.84rem;
  color: var(--danger);
}

.fund-seeker-submit,
.fund-seeker-back {
  margin-top: 0.35rem;
  justify-self: start;
}

.fund-seeker-amount-highlight {
  color: var(--text);
  font-weight: 700;
}

.fund-seeker-contact-card .fund-seeker-contact-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}

.fund-seeker-contact-body {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.fund-seeker-contact-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
}

.fund-seeker-contact-body p + p {
  margin-top: 0.75rem;
}

.fund-seeker-guarantee-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.fund-seeker-guarantee-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--text);
}

.fund-seeker-optional-tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
  vertical-align: middle;
}

.fund-seeker-upload-wrap {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.fund-seeker-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fund-seeker-upload-source-btn {
  flex: 1 1 9rem;
}

.fund-seeker-camera-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.fund-seeker-camera-video {
  display: block;
  width: 100%;
  max-height: 320px;
  border-radius: 10px;
  background: #111;
  object-fit: cover;
}

.fund-seeker-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fund-seeker-file-input.hidden {
  display: none;
}

.fund-seeker-file-input {
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
}

.fund-seeker-file-input::file-selector-button {
  margin-inline-end: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.fund-seeker-upload-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.fund-seeker-upload-status {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
}

.fund-seeker-upload-status.is-success {
  color: var(--success, #15803d);
}

.fund-seeker-upload-status.is-error {
  color: var(--danger);
}

.fund-seeker-upload-preview {
  margin-top: 0.25rem;
}

.fund-seeker-upload-preview img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--bg-soft);
}

.fund-seeker-summary-disclaimer {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.fund-seeker-summary-lead {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

.fund-seeker-summary-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.fund-seeker-summary-points {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.35rem;
  display: grid;
  gap: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.fund-seeker-summary-points li {
  padding-inline-start: 0.15rem;
}

.fund-seeker-summary-points strong {
  display: inline;
  font-weight: 700;
}

.fund-seeker-summary-annex {
  margin-bottom: 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.fund-seeker-summary-annex-grid {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.fund-seeker-summary-annex-grid > div {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.fund-seeker-summary-annex-grid dt {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.fund-seeker-summary-annex-grid dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.fund-seeker-summary-annex-total dd {
  color: var(--primary);
}

.fund-seeker-summary-annex-wide {
  grid-column: 1 / -1;
}

.fund-seeker-summary-accept {
  margin-bottom: 0.5rem;
}

.fund-seeker-collateral-spec {
  margin: 1rem 0;
}

.fund-seeker-collateral-subtitle {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.fund-seeker-collateral-spec-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.fund-seeker-collateral-spec-list > div {
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.fund-seeker-collateral-spec-list dt {
  display: block;
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.fund-seeker-collateral-spec-list dd {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: inherit;
}

.fund-seeker-collateral-spec-list dd.ltr {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fund-seeker-collateral-doc-checklist {
  margin: 0.75rem 0 0;
  padding-right: 1.35rem;
  color: var(--text);
  line-height: 1.75;
  font-weight: 600;
}

.fund-seeker-collateral-doc-checklist li + li {
  margin-top: 0.35rem;
}

.fund-seeker-collateral-spec .btn-secondary {
  margin-top: 0.35rem;
}

.fund-seeker-fee-schedule {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.fund-seeker-fee-schedule > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.fund-seeker-fee-schedule dt {
  color: var(--muted);
}

.fund-seeker-fee-schedule dd {
  margin: 0;
  font-weight: 600;
}

.fund-seeker-fee-options-title {
  margin: 1rem 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.fund-seeker-fee-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.fund-seeker-fee-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.fund-seeker-fee-option:hover:not(.is-disabled) {
  border-color: var(--primary);
}

.fund-seeker-fee-option:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-soft));
}

.fund-seeker-fee-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fund-seeker-fee-option input[type="radio"] {
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--primary);
}

.fund-seeker-fee-option-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.fund-seeker-fee-option-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.fund-seeker-fee-option-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.fund-seeker-fee-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
}

.fund-seeker-capital-remaining {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.fund-seeker-capital-remaining strong {
  color: var(--success);
  font-weight: 700;
}

.fund-seeker-contract-loading {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.fund-seeker-contract-scroll {
  max-height: min(52vh, 520px);
  overflow: auto;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.project-modal #modal-investor-contract-body.fund-seeker-contract-scroll {
  width: 100%;
}

/* Investor contract inside project modal:
   on desktop the side column is narrower, so we reduce line-height/padding and max-height
   to avoid the contract becoming excessively tall. */
@media (min-width: 641px) {
  .project-modal #modal-investor-contract-body.fund-seeker-contract-scroll {
    max-height: min(40vh, 360px);
    padding: 0.85rem 0.95rem;
  }

  .project-modal #modal-investor-contract-body .fund-seeker-contract-doc {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .project-modal #modal-investor-contract-body .fund-seeker-contract-doc p,
  .project-modal #modal-investor-contract-body .fund-seeker-contract-doc ul,
  .project-modal #modal-investor-contract-body .fund-seeker-contract-doc ol {
    margin: 0 0 0.5rem;
  }
}

.fund-seeker-contract-doc {
  font-size: 0.86rem;
  line-height: 1.85;
  color: #000;
}

.fund-seeker-contract-doc *,
.fund-seeker-contract-markdown,
.fund-seeker-contract-markdown * {
  color: #000;
}

.fund-seeker-contract-doc-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.fund-seeker-contract-doc h4 {
  margin: 1rem 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.fund-seeker-contract-doc p,
.fund-seeker-contract-doc ul,
.fund-seeker-contract-doc ol {
  margin: 0 0 0.65rem;
}

.fund-seeker-contract-doc ul,
.fund-seeker-contract-doc ol {
  padding-inline-start: 1.25rem;
}

.fund-seeker-contract-terms {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.fund-seeker-contract-terms > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.fund-seeker-contract-terms dt {
  margin: 0;
  font-weight: 600;
  color: #000;
}

.fund-seeker-contract-terms dd {
  margin: 0;
}

.fund-seeker-contract-signatures {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.fund-seeker-contract-accept {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.fund-seeker-contract-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.7;
  cursor: pointer;
}

.fund-seeker-contract-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.fund-seeker-contract-hint {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.fund-seeker-terms-amount {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.fund-seeker-fee-formula-hint {
  margin: 0.75rem 0 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-soft);
}

.fund-seeker-terms-preview-title {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.fund-seeker-terms-explainer {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
  min-width: 0;
  max-width: 100%;
}

.fund-seeker-explainer-section {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-soft);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fund-seeker-explainer-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

.fund-seeker-explainer-dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.fund-seeker-explainer-dl > div:not(.fund-seeker-explainer-divider) {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.84rem;
}

.fund-seeker-explainer-divider {
  height: 2px;
  margin: 0.65rem 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.15) 8%,
    rgba(var(--accent-rgb), 0.55) 50%,
    rgba(var(--accent-rgb), 0.15) 92%,
    transparent
  );
}

.fund-seeker-explainer-dl dt {
  color: var(--muted);
  flex-shrink: 0;
}

.fund-seeker-explainer-dl dd {
  margin: 0;
  text-align: left;
}

.fund-seeker-explainer-tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
}

.fund-seeker-explainer-detail {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.fund-seeker-explainer-split {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
}

.fund-seeker-explainer-split > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.fund-seeker-explainer-split > div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.fund-seeker-explainer-split > div > strong {
  font-weight: 700;
  color: var(--text);
}

.fund-seeker-explainer-total {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
}

.fund-seeker-explainer-total > span {
  font-weight: 600;
  color: var(--text);
}

.fund-seeker-schedule-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.fund-seeker-schedule-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.fund-seeker-schedule-table th,
.fund-seeker-schedule-table td {
  padding: 0.55rem 0.65rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.fund-seeker-schedule-table th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}

.fund-seeker-schedule-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}

.fund-seeker-schedule-table tfoot td {
  background: rgba(var(--accent-rgb), 0.06);
  border-top: 2px solid var(--border);
}

.fund-seeker-schedule-preview-dl {
  margin-bottom: 0.75rem;
}

.fund-seeker-open-schedule-btn {
  width: 100%;
}

.fund-seeker-schedule-modal.project-modal {
  padding: 1rem;
}

.fund-seeker-schedule-modal-dialog {
  width: min(960px, 100%);
}

.fund-seeker-schedule-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

@media (min-width: 768px) {
  .fund-seeker-open-schedule-btn {
    width: auto;
  }
}

@media (max-width: 767px) {
  .fund-seeker-schedule-modal.project-modal {
    padding: 0;
    align-items: flex-end;
  }

  .fund-seeker-schedule-modal-dialog {
    width: 100%;
    max-height: min(92dvh, 100%);
    border-radius: 16px 16px 0 0;
    margin: 0;
  }

  .fund-seeker-schedule-modal .project-modal-content {
    padding: 0.85rem 1rem 1.25rem;
  }

  .fund-seeker-schedule-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    margin-top: 0.65rem;
  }

  .fund-seeker-schedule-table {
    min-width: 0;
  }

  .fund-seeker-schedule-table thead {
    display: none;
  }

  .fund-seeker-schedule-table tbody tr,
  .fund-seeker-schedule-table tfoot tr {
    display: block;
    margin-bottom: 0.65rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
  }

  .fund-seeker-schedule-table tfoot tr {
    margin-bottom: 0;
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.25);
  }

  .fund-seeker-schedule-table tbody td,
  .fund-seeker-schedule-table tfoot td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.32rem 0;
    border-bottom: none;
    white-space: normal;
    text-align: left;
  }

  .fund-seeker-schedule-table tbody td::before,
  .fund-seeker-schedule-table tfoot td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    flex-shrink: 0;
    text-align: right;
  }

  .fund-seeker-schedule-table tbody td:first-child {
    font-weight: 700;
    padding-bottom: 0.45rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed var(--border);
  }

  .fund-seeker-schedule-table tfoot td:nth-child(2) {
    display: none;
  }

  .fund-seeker-terms-preview > div,
  .fund-seeker-explainer-dl > div:not(.fund-seeker-explainer-divider) {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .fund-seeker-explainer-dl dd,
  .fund-seeker-terms-preview strong {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
  }

  .fund-seeker-explainer-dl > div:not(.fund-seeker-explainer-divider) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .fund-seeker-explainer-split > div {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .fund-seeker-explainer-split > div > strong {
    margin-inline-start: auto;
    text-align: left;
  }
}

.fund-seeker-fee-formula-title {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.fund-seeker-fee-formula-list {
  margin: 0;
  padding: 0 1.1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--muted);
}

.fund-seeker-fee-formula-list strong {
  color: var(--text);
  font-weight: 700;
}

.fund-seeker-fee-formula-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.fund-seeker-fee-applied-hint {
  margin: 0.65rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--accent);
}

.fund-seeker-terms-preview {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  min-width: 0;
  max-width: 100%;
}

.fund-seeker-terms-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.86rem;
}

.fund-seeker-terms-preview span {
  color: var(--muted);
}

.fund-seeker-terms-preview strong {
  color: var(--text);
  font-weight: 700;
}

.fund-seeker-terms-preview .fund-seeker-terms-total {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(var(--accent-rgb), 0.25);
}

.fund-seeker-terms-preview .fund-seeker-terms-total strong {
  color: var(--accent);
}

.fund-seeker-terms-note {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(var(--accent-rgb), 0.22);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

.fund-seeker-guarantee-block {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.fund-seeker-guarantee-block-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.fund-seeker-contract-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.project-modal-contract-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-modal-contract-toolbar h3 {
  margin: 0;
}

.fund-seeker-contract-print-btn {
  font-size: 0.86rem;
}

.fund-seeker-contract-markdown h1,
.fund-seeker-contract-markdown h2,
.fund-seeker-contract-markdown h3 {
  margin: 1rem 0 0.45rem;
  font-weight: 700;
  line-height: 1.6;
}

.fund-seeker-contract-markdown h1 {
  font-size: 1rem;
  text-align: center;
}

.fund-seeker-contract-markdown h2 {
  font-size: 0.95rem;
}

.fund-seeker-contract-markdown h3 {
  font-size: 0.9rem;
}

.fund-seeker-contract-markdown p,
.fund-seeker-contract-markdown ul,
.fund-seeker-contract-markdown ol {
  margin: 0 0 0.65rem;
}

.fund-seeker-contract-markdown ul,
.fund-seeker-contract-markdown ol {
  padding-inline-start: 1.25rem;
}

.fund-seeker-contract-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.85rem;
  font-size: 0.84rem;
}

.fund-seeker-contract-markdown th,
.fund-seeker-contract-markdown td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.55rem;
  text-align: right;
  vertical-align: top;
}

.fund-seeker-contract-markdown th {
  background: var(--bg-soft);
  font-weight: 600;
}

.fund-seeker-contract-markdown hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}

@media print {
  body.fund-seeker-printing .site-topbar,
  body.fund-seeker-printing .page-header,
  body.fund-seeker-printing .fund-seeker-contract-toolbar,
  body.fund-seeker-printing .fund-seeker-contract-accept,
  body.fund-seeker-printing .fund-seeker-contract-hint,
  body.fund-seeker-printing .fund-seeker-form-error,
  body.fund-seeker-printing .fund-seeker-step-actions,
  body.fund-seeker-printing .fund-seeker-step-desc,
  body.fund-seeker-printing .fund-seeker-contract-loading,
  body.fund-seeker-printing .fund-seeker-step:not(#fund-seeker-step-contract) {
    display: none !important;
  }

  body.fund-seeker-printing .bento-container,
  body.fund-seeker-printing #fund-seeker-main,
  body.fund-seeker-printing #fund-seeker-step-contract {
    display: block !important;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  body.fund-seeker-printing .fund-seeker-contract-scroll {
    max-height: none;
    overflow: visible;
    border: none;
    padding: 0;
    background: #fff;
  }

  body.fund-seeker-printing .fund-seeker-contract-doc,
  body.fund-seeker-printing .fund-seeker-contract-doc *,
  body.fund-seeker-printing .fund-seeker-contract-markdown,
  body.fund-seeker-printing .fund-seeker-contract-markdown * {
    color: #000 !important;
  }

  body.fund-seeker-printing .fund-seeker-step-title {
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 900px) {
  .fund-seeker-amount-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
  }

  .fund-seeker-amount-panel {
    border-top: none;
    padding-top: 0;
    border-inline-start: 1px solid var(--border);
    padding-inline-start: 1.5rem;
    position: sticky;
    top: calc(var(--site-topbar-sticky-offset, 4.25rem) + 1.35rem);
    z-index: 5;
    align-self: start;
    background: var(--card);
  }
}

/* Business Growth Snapshot */
.growth-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.growth-block .section-desc {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.growth-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.growth-trend-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.growth-signals-grid {
  margin-top: 0;
}

.growth-block .growth-kpi-value,
.growth-block .metric-item .value {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.growth-block .growth-kpi-label {
  line-height: 1.4;
}

.growth-kpi {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  min-width: 0;
}

.growth-block .metric-item {
  border: 1px solid var(--border);
  min-width: 0;
}

.growth-kpi-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.growth-kpi-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.growth-kpi-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.growth-lever-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.growth-lever-item {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
}

.growth-lever-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.growth-impact-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  white-space: nowrap;
}

.growth-lever-item.impact-high .growth-impact-badge {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.growth-lever-item.impact-medium .growth-impact-badge {
  background: rgba(234, 179, 8, 0.15);
  color: var(--warning);
}

.growth-lever-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.growth-action-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.growth-action-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
}

.growth-action-card h4 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1rem;
}

.growth-action-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.growth-action-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.growth-action-growth .growth-action-type {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.growth-action-funding .growth-action-type {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.growth-action-risk .growth-action-type {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.growth-json-block details {
  cursor: pointer;
}

.growth-json {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 10px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.5;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.growth-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.credit-engine-block {
  border-color: rgba(var(--accent-rgb), 0.25);
}

.credit-engine-summary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credit-engine-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 720px) {
  .credit-engine-hero {
    grid-template-columns: 1fr;
  }
}

.credit-engine-limit,
.credit-engine-decision {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  min-width: 0;
}

.credit-engine-kicker {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.credit-engine-amount {
  display: block;
  font-size: 1.55rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.credit-engine-meta,
.credit-engine-funding {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.credit-engine-decision {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.credit-decision-badge {
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem;
}

.credit-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.credit-signal-panel {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  min-width: 0;
}

.credit-signal-panel h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.credit-signal-panel--positive {
  border-color: rgba(34, 197, 94, 0.25);
}

.credit-signal-panel--negative {
  border-color: rgba(239, 68, 68, 0.22);
}

.credit-signal-list {
  margin: 0;
  padding-right: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.credit-reasoning {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.credit-reasoning h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.credit-reasoning p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
}

.credit-calc-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}

.credit-calc-summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  list-style: none;
}

.credit-calc-summary::-webkit-details-marker {
  display: none;
}

.credit-calc-body {
  padding: 0 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credit-calc-formula-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.credit-calc-input-grid,
.credit-funding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}

.credit-calc-input-grid dt,
.credit-funding-steps dt {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.credit-calc-input-grid dd,
.credit-funding-steps dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.credit-calc-inputs h4,
.credit-calc-steps h4,
.credit-funding-calc h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.credit-calc-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.credit-calc-step {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
}

.credit-calc-step-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
}

.credit-calc-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.credit-calc-formula {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

.credit-calc-step-amount {
  white-space: nowrap;
  font-size: 0.92rem;
}

.credit-calc-step-detail {
  margin: 0.45rem 0 0 2.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.credit-calc-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.credit-calc-final strong {
  font-size: 1.15rem;
}

.credit-risk-details,
.credit-funding-details {
  margin-top: 0.75rem;
}

.credit-risk-final {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.credit-funding-final {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.credit-decision-step.credit-check-pass {
  border-color: rgba(34, 197, 94, 0.25);
}

.credit-decision-step.credit-check-fail {
  border-color: rgba(239, 68, 68, 0.25);
}

.credit-decision-step.credit-check-decision {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.06);
}

.credit-check-badge {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-inset);
}

.credit-check-decision .credit-check-badge {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.credit-decision-outcome {
  color: var(--accent);
  font-weight: 600;
}

.my-credit-page .page-header {
  margin-bottom: 1.25rem;
}

.my-credit-loading {
  margin-bottom: 1rem;
}

.my-credit-loading-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  padding: 1.5rem;
}

.my-credit-loading-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.my-credit-layout {
  display: grid;
  gap: 1rem;
}

.my-credit-hero {
  display: grid;
  gap: 1.1rem;
}

.my-credit-hero-main {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .my-credit-hero-main {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem;
  }
}

.my-credit-score-wrap {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

.my-credit-score-label {
  font-size: 0.84rem;
  color: var(--muted);
}

.my-credit-score-value {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}

.my-credit-score-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.my-credit-hero-meta {
  display: grid;
  gap: 0.65rem;
}

.my-credit-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.my-credit-meta-row > span:first-child {
  color: var(--muted);
}

.my-credit-meter {
  display: grid;
  gap: 0.35rem;
}

.my-credit-meter-track {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--surface-inset);
  overflow: hidden;
}

.my-credit-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}

.my-credit-meter-fill.badge-high {
  background: #ef4444;
}

.my-credit-meter-fill.badge-medium {
  background: #f59e0b;
}

.my-credit-meter-fill.badge-low {
  background: #22c55e;
}

.my-credit-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.my-credit-status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.75;
}

.my-credit-status.is-positive {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: var(--text);
}

.my-credit-status.is-muted {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--muted);
}

.my-credit-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.my-credit-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.my-credit-summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
}

.my-credit-target {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

.my-credit-empty-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.my-credit-tier-list {
  margin: 0;
  padding-right: 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
}

.my-credit-improve .fund-seeker-denied-areas {
  margin-top: 0.25rem;
}

.admin-fs-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-fs-page > .card {
  margin-bottom: 0;
}

.admin-fs-toolbar {
  padding: 1.15rem 1.25rem;
}

.admin-fs-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-fs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-fs-tab-count {
  margin-right: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(28, 37, 48, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
}

.tab.active .admin-fs-tab-count {
  background: rgba(255, 255, 255, 0.18);
}

.admin-fs-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  justify-content: flex-end;
  min-width: min(100%, 22rem);
}

.admin-fs-search {
  flex: 1;
  min-width: 12rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--surface-inset);
  color: var(--text);
}

.admin-fs-search:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.installments-table .muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.installments-table .is-debit {
  color: #b42318;
  font-weight: 700;
}

.installments-table .is-credit {
  color: #067647;
  font-weight: 700;
}

.installments-table tr.is-deleted-row {
  opacity: 0.72;
  background: rgba(180, 35, 24, 0.04);
}

.admin-fs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.admin-fs-list-panel,
.admin-fs-detail-panel {
  min-width: 0;
}

.admin-fs-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-fs-list-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.admin-fs-list-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-fs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: calc(100vh - 18rem);
  overflow: auto;
  padding-left: 0.15rem;
}

.admin-fs-card {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-fs-card:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.admin-fs-card.is-selected {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.admin-fs-card--pending {
  border-right: 3px solid #eab308;
}

.admin-fs-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.admin-fs-card-id {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.admin-fs-card-seller {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.admin-fs-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-fs-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
}

.admin-fs-metric {
  min-width: 0;
}

.admin-fs-metric--amount {
  grid-column: 1 / -1;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.admin-fs-metric--highlight strong {
  color: var(--accent);
}

.admin-fs-metric-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.admin-fs-metric strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.admin-fs-metric--amount strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-fs-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-fs-draft-pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-fs-detail-panel {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.admin-fs-detail-empty,
.admin-fs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 2.5rem 1.25rem;
  color: var(--muted);
}

.admin-fs-detail-empty h3,
.admin-fs-empty p {
  margin: 0;
}

.admin-fs-detail-empty h3 {
  color: var(--text);
  font-size: 1rem;
}

.admin-fs-detail-empty-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.04));
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.admin-fs-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-fs-detail-head h3 {
  margin: 0.15rem 0;
  font-size: 1.1rem;
}

.admin-fs-detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-fs-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.03));
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}

.admin-fs-detail-amount {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-fs-detail-section {
  margin-bottom: 1rem;
}

.admin-fs-detail-section h4 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
}

.admin-fs-detail-grid {
  display: grid;
  gap: 0.55rem;
}

.admin-fs-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.admin-fs-detail-item:last-child {
  border-bottom: none;
}

.admin-fs-detail-label {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 42%;
}

.admin-fs-detail-value {
  text-align: left;
  font-weight: 700;
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.admin-fs-detail-value--amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.admin-fs-detail-item--wide {
  flex-direction: column;
  gap: 0.4rem;
}

.admin-fs-detail-item--wide .admin-fs-detail-label {
  max-width: none;
}

.admin-fs-detail-item--wide .admin-fs-detail-value {
  text-align: right;
  white-space: normal;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.7;
}

.admin-fs-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-fs-credit-report-url {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-fs-missing {
  color: var(--muted, #6b7280);
  font-weight: 500;
}

.admin-fs-doc-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  font: inherit;
  cursor: pointer;
}

button.admin-fs-doc-link {
  appearance: none;
}

.admin-fs-doc-link:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
}

.admin-fs-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.admin-fs-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-fs-project-title-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-fs-project-title-input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
}

.jalali-date-input {
  direction: ltr;
  text-align: left;
  cursor: pointer;
}

.jalali-date-input:focus {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 1px;
}

jdp-container {
  z-index: 10050 !important;
  font-family: "Estedad", "Segoe UI", Tahoma, system-ui, sans-serif;
}

.admin-fs-project-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
  color: var(--text);
  font-size: 0.88rem;
}

.admin-fs-project-checkbox-label input {
  width: 1rem;
  height: 1rem;
}

.admin-fs-project-description-input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  resize: vertical;
  min-height: 6rem;
}

.admin-fs-publish-form {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.admin-fs-required {
  color: #dc2626;
  font-size: 0.8rem;
}

.admin-fs-project-file-input {
  width: 100%;
  margin-top: 0.35rem;
  font-family: inherit;
  font-size: 0.84rem;
}

.admin-fs-upload-status {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.admin-fs-upload-status.is-success {
  color: #15803d;
}

.admin-fs-upload-status.is-error {
  color: #dc2626;
}

.admin-fs-project-upload-preview {
  margin-top: 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 220px;
}

.admin-fs-project-upload-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-fs-project-subsection-title {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.95rem;
}

.admin-project-documents-list {
  margin: 0.65rem 0 0.35rem;
}

.admin-project-documents-empty {
  margin: 0;
  padding: 0.15rem 0;
}

.admin-project-documents-table {
  --admin-doc-col-file: minmax(0, 1.25fr);
  --admin-doc-col-note: minmax(0, 1fr);
  --admin-doc-col-actions: 5.5rem;
}

.admin-project-documents-head,
.admin-project-document-row {
  display: grid;
  grid-template-columns: var(--admin-doc-col-file) var(--admin-doc-col-note) var(--admin-doc-col-actions);
  gap: 0.75rem;
  align-items: center;
}

.admin-project-documents-head {
  padding: 0 0.1rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 0.15rem;
}

.admin-project-documents-col {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.admin-project-documents-col-actions {
  text-align: left;
}

.admin-project-documents-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.admin-project-document-row {
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 0.15s ease;
}

.admin-project-document-row:last-child {
  border-bottom: none;
}

.admin-project-document-row:hover {
  background: rgba(148, 163, 184, 0.06);
  border-radius: 8px;
}

.admin-project-document-filename {
  min-width: 0;
  font-size: 0.84rem;
  color: var(--text);
  word-break: break-all;
  line-height: 1.45;
}

.admin-project-document-note-cell {
  min-width: 0;
}

.admin-project-document-mobile-label {
  display: none;
}

.admin-project-document-note-input {
  width: 100%;
  min-width: 0;
  padding: 0.1rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text);
  box-shadow: none;
}

.admin-project-document-note-input:focus {
  outline: none;
  box-shadow: inset 0 -1px 0 rgba(var(--accent-rgb), 0.55);
}

.admin-project-document-note-input::placeholder {
  color: var(--muted);
}

.admin-project-document-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.admin-project-document-open {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.admin-project-document-open:hover {
  text-decoration: underline;
}

.admin-project-document-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.admin-project-document-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.admin-project-documents-download-btn {
  white-space: nowrap;
}

.admin-project-document-add-btn {
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.admin-project-document-add-btn:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .admin-project-documents-table {
    --admin-doc-col-file: 1fr;
    --admin-doc-col-note: 1fr;
    --admin-doc-col-actions: auto;
  }

  .admin-project-documents-head {
    display: none;
  }

  .admin-project-document-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-inline: 0.35rem;
  }

  .admin-project-document-filename::before {
    content: "فایل: ";
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
  }

  .admin-project-document-mobile-label {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
  }

  .admin-project-document-row-actions {
    justify-content: flex-start;
  }
}

.admin-projects-list-page .admin-projects-list-panel,
.admin-project-detail-page .admin-project-detail {
  width: 100%;
}

.admin-projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-project-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-muted);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-project-list-item:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.admin-project-list-item.is-deleted {
  opacity: 0.78;
}

.admin-project-list-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.admin-project-list-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.admin-project-list-meta {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-project-list-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.admin-project-list-metric {
  display: grid;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.admin-project-list-metric span {
  color: var(--muted);
}

.admin-project-list-metric strong {
  font-size: 0.9rem;
}

.admin-project-list-action {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.admin-project-detail-top {
  margin-bottom: 0.75rem;
}

.admin-project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-project-back-link:hover {
  text-decoration: underline;
}

.admin-project-detail {
  display: grid;
  gap: 1rem;
}

.admin-project-detail-loading {
  padding: 2rem 0;
}

.admin-project-detail-head {
  padding: 1.1rem 1.25rem;
}

.admin-project-detail-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-project-detail-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-project-detail-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.admin-project-detail-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-project-detail-grid {
  margin-top: 0.5rem;
}

.admin-project-detail-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.admin-project-detail-hint {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

.admin-project-danger-zone {
  margin-top: 1.5rem;
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: 12px;
  background: rgba(185, 28, 28, 0.04);
}

.admin-project-danger-zone h3 {
  color: #b91c1c;
}

.admin-project-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.admin-project-danger-actions .admin-fs-search {
  max-width: 12rem;
}

.admin-project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.admin-project-detail-hero {
  padding: 1.1rem 1.25rem;
}

.admin-project-detail-hero-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-project-detail-hero-media {
  display: grid;
  gap: 0.5rem;
}

.admin-project-detail-hero-image-wrap {
  display: grid;
  gap: 0.5rem;
}

.admin-project-detail-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.admin-project-detail-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-project-detail-hero-image-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-project-detail-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-project-detail-hero-stat {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-project-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-project-section-head h3 {
  margin: 0;
}

.admin-project-document-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.admin-project-document-modal-filename {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
  word-break: break-all;
}

.admin-project-document-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.admin-project-investments-table-wrap {
  overflow: auto;
}

.admin-project-investments-table {
  min-width: 720px;
}

.admin-project-investments-actions {
  margin-top: 0.85rem;
  padding-bottom: 0;
}

.admin-project-investments-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-fs-detail-section h3,
.admin-fs-detail-section h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .admin-project-list-item {
    grid-template-columns: 1fr;
  }

  .admin-project-list-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-project-detail-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-project-detail-hero-layout {
    grid-template-columns: 1fr;
  }
}

.admin-fs-status-logs {
  margin: 0;
  padding-right: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.8;
}

.admin-fs-log-note {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-fs-modal-body {
  min-height: 0;
}

.admin-fs-guarantee-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-inset);
  border: 1px solid var(--border);
}

.admin-fs-guarantee-toolbar {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.admin-fs-guarantee-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-fs-guarantee-tool-btn:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.admin-fs-guarantee-tool-btn:active {
  transform: scale(0.96);
}

.admin-fs-guarantee-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 640px);
  max-height: min(70vh, 640px);
  overflow: hidden;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.admin-fs-guarantee-viewport.is-dragging {
  cursor: grabbing;
}

.admin-fs-guarantee-viewport img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  pointer-events: none;
}

.admin-fs-guarantee-viewport.is-dragging img {
  transition: none;
}

.project-fundraising-deadline {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.project-fundraising-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
}

.project-fundraising-countdown-label {
  color: var(--muted);
  font-weight: 500;
}

.project-fundraising-countdown-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  padding: 0.12rem 0.55rem;
  font-weight: 700;
}

.project-fundraising-countdown-text--urgent {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.08);
}

.project-fundraising-countdown-pulse {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #ea580c;
  flex-shrink: 0;
  animation: project-fundraising-pulse 1s step-end infinite;
}

@keyframes project-fundraising-pulse {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0.15;
  }
}

.project-fundraising-closed,
.project-modal-fundraising-closed {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: #b45309;
}

.project-modal-fundraising-closed {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
}

.admin-fs-guarantee-frame {
  display: block;
  width: 100%;
  min-height: min(70vh, 640px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.admin-fs-modal-fallback {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.86rem;
}

.admin-fs-contract-body {
  padding-bottom: 0.5rem;
  color: #000;
}

.admin-fs-contract-body .fund-seeker-contract-doc,
.admin-fs-contract-body .fund-seeker-contract-doc * {
  color: #000;
}

@media (max-width: 1100px) {
  .admin-fs-layout {
    grid-template-columns: 1fr;
  }

  .admin-fs-detail-panel {
    position: static;
    max-height: none;
  }

  .admin-fs-list {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .admin-fs-controls {
    width: 100%;
    justify-content: stretch;
  }

  .admin-fs-search {
    min-width: 0;
  }

  .admin-fs-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-fs-detail-value--amount {
    white-space: normal;
  }
}

.admin-credit-limit-card {
  margin-top: 1rem;
}

.admin-credit-limit-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 1rem 0;
}

.admin-credit-limit-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-credit-limit-metric--highlight strong {
  color: var(--primary, #2563eb);
}

.admin-credit-limit-label {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

.admin-credit-limit-source {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

.admin-credit-limit-note {
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 1rem;
}

.admin-credit-limit-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.admin-credit-limit-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-credit-limit-field input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.5rem;
}

.admin-credit-limit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.admin-project-video-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-project-video-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface-inset);
}

.admin-project-video-empty p {
  margin: 0;
  color: var(--muted);
}

.admin-project-video-player {
  width: 100%;
  max-height: 360px;
  border-radius: 14px;
  background: #0f172a;
}

.admin-project-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.admin-project-video-actions .btn-secondary.is-danger {
  background: rgba(180, 35, 24, 0.06);
}

.admin-project-video-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.admin-project-video-progress-bar {
  flex: 1;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--surface-inset);
  overflow: hidden;
}

.admin-project-video-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.12s ease;
}

.admin-project-video-progress-label {
  min-width: 2.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-unfunded-modal-dialog {
  width: min(880px, calc(100% - 2rem));
  max-width: 880px;
  margin: 1rem;
}

.admin-unfunded-modal-content {
  padding: 1.25rem 1.35rem 1.35rem;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.admin-unfunded-modal-close {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.1rem 0;
  flex-shrink: 0;
}

.admin-unfunded-modal-title {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.admin-unfunded-modal-summary {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.admin-unfunded-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(46vh, 380px);
  overflow: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  background: var(--bg-soft, rgba(0, 0, 0, 0.02));
}

.admin-unfunded-table {
  width: 100%;
  margin: 0;
  font-size: 0.88rem;
  border-collapse: collapse;
}

.admin-unfunded-table th,
.admin-unfunded-table td {
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}

.admin-unfunded-table thead th {
  position: sticky;
  top: 0;
  background: var(--card, #fff);
  z-index: 1;
  font-weight: 600;
}

.admin-unfunded-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-unfunded-txn-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  direction: ltr;
  text-align: left;
  line-height: 1.45;
}

.admin-unfunded-progress {
  margin: 0 0 0.45rem;
}

.admin-unfunded-progress-text {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-unfunded-error {
  margin: 0 0 0.85rem;
}

.admin-unfunded-modal-actions {
  margin-top: 0.25rem;
  padding-top: 0.15rem;
}

@media (max-width: 820px) {
  .admin-unfunded-modal-dialog {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .admin-unfunded-modal-content {
    padding: 1.1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .admin-unfunded-list-wrap {
    max-height: min(42vh, 320px);
  }

  .admin-unfunded-table th,
  .admin-unfunded-table td {
    padding: 0.6rem 0.7rem;
  }
}

.btn-secondary.is-danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.28);
}

.profile-settings-page .profile-settings-card {
  padding: 1.25rem;
}

.profile-settings-account-links {
  padding: 0;
  margin-bottom: 1rem;
  overflow: hidden;
}

.profile-settings-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
}

.profile-settings-credit-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.profile-settings-credit-score-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.profile-settings-credit-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  min-width: 2.75rem;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1e40af;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: plaintext;
}

.profile-settings-credit-score.is-empty {
  background: var(--surface-inset);
  border-color: var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 0;
}

.profile-settings-credit-limit {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.profile-settings-credit-limit.is-empty {
  color: var(--muted);
  font-weight: 500;
}

.profile-settings-credit-cta {
  flex-shrink: 0;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.profile-settings-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--border);
}

.profile-settings-fee-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.profile-settings-fee-value {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.profile-settings-account-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.profile-settings-account-link:hover {
  background: var(--bg-soft);
}

.profile-settings-account-link-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.profile-settings-account-link-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.profile-settings-loading {
  margin: 0;
  color: var(--muted);
}

.profile-settings-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  align-items: start;
}

.profile-settings-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.profile-settings-avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), var(--brand-gold));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-settings-avatar-img {
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-inset);
}

.profile-settings-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.profile-settings-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-settings-readonly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.profile-settings-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.profile-settings-bio-input {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  line-height: 1.65;
  background: var(--card);
}

.profile-settings-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-settings-hint.is-error {
  color: #b42318;
}

.profile-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.profile-settings-page .btn-modal-submit,
.profile-settings-page .btn-modal-secondary {
  border-radius: 8px;
  text-decoration: none;
}

.profile-settings-page .btn-modal-secondary.is-danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.28);
}

.profile-settings-page .btn-modal-secondary.is-danger:hover:not(:disabled) {
  background: rgba(180, 35, 24, 0.06);
}

.profile-settings-actions .btn-modal-submit {
  width: auto;
  min-width: 11rem;
  flex: 1 1 auto;
}

.profile-settings-actions .btn-modal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
}

.profile-settings-avatar-actions .btn-modal-secondary {
  border-radius: 8px;
}

@media (max-width: 720px) {
  .profile-settings-layout {
    grid-template-columns: 1fr;
  }

  .profile-settings-readonly {
    grid-template-columns: 1fr;
  }

  .profile-settings-actions .btn-modal-submit,
  .profile-settings-actions .btn-modal-secondary {
    flex: 1 1 calc(50% - 0.33rem);
    min-width: 0;
    width: auto;
  }
}

.avatar-crop-dialog {
  max-width: min(420px, 100%);
}

.avatar-crop-content {
  padding: 1rem 1.1rem 1.15rem;
}

.avatar-crop-viewport {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0.75rem auto 0.85rem;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  touch-action: none;
  cursor: grab;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.avatar-crop-viewport:active {
  cursor: grabbing;
}

.avatar-crop-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
}

.avatar-crop-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.avatar-crop-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.avatar-crop-zoom {
  flex: 1;
  accent-color: var(--accent);
}

/* Contract PDF generation / download overlay */
.contract-pdf-loading {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contract-pdf-loading.hidden {
  display: none;
}

body.contract-pdf-loading-open {
  overflow: hidden;
}

.contract-pdf-loading-card {
  width: min(100%, 22rem);
  padding: 1.6rem 1.4rem 1.45rem;
  border-radius: 18px;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.contract-pdf-loading-spinner {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0 auto 1rem;
  border-width: 3px;
  display: block;
}

.contract-pdf-loading-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.contract-pdf-loading-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.btn-secondary.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: wait;
  opacity: 0.9;
}

.btn-secondary.is-loading .spinner {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
  margin-left: 0;
}

.fund-seeker-credit-touchpoint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.credit-increase-pending-status {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--accent);
}

.credit-increase-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.credit-increase-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.credit-increase-status {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.credit-increase-textarea {
  min-height: 6rem;
  resize: vertical;
}

.credit-increase-evidence-head {
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem 0 0.75rem;
}

.credit-increase-add-evidence-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1.1rem;
  border: 2px dashed rgba(var(--accent-rgb), 0.5);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.credit-increase-add-evidence-btn:hover {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.14);
}

.credit-increase-add-evidence-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
}

.credit-increase-evidence-list,
.credit-increase-history {
  display: grid;
  gap: 0.85rem;
}

.credit-increase-evidence-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

.credit-increase-evidence-card,
.credit-increase-history-item {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  display: grid;
  gap: 0.65rem;
}

.credit-increase-evidence-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.credit-increase-upload-wrap {
  display: grid;
  gap: 0.45rem;
}

.credit-increase-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.credit-increase-upload-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.credit-increase-upload-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.credit-increase-upload-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
}

.credit-increase-files,
.admin-credit-increase-files {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.credit-increase-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
}

.credit-increase-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.credit-increase-file-link:hover {
  text-decoration: underline;
}

.credit-increase-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-increase-file-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.credit-increase-file-remove {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}

.credit-increase-file-remove:hover {
  background: rgba(220, 38, 38, 0.14);
}

.credit-increase-form-actions,
.admin-credit-increase-review .admin-fs-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.admin-credit-increase-thumb {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-credit-increase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-credit-increase-review {
  display: grid;
  gap: 0.75rem;
}

/* --- Contact page --- */
.contact-page .page-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-tile,
.contact-map-section {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.contact-tile--support {
  grid-column: 1 / -1;
}

.contact-tile-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-tile-head h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.contact-tile-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-tile-lead,
.contact-page .contact-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.94rem;
}

.contact-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.contact-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.22);
}

.contact-btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.28);
}

.contact-btn--outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.contact-btn--outline:hover {
  background: var(--bg-soft);
  border-color: rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
}

.contact-btn--block {
  width: 100%;
}

.contact-btn--phone {
  direction: ltr;
  unicode-bidi: plaintext;
  letter-spacing: 0.02em;
}

.contact-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
}

.contact-meta-list div {
  display: grid;
  gap: 0.25rem;
}

.contact-meta-list dt {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.contact-meta-list dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-postal {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.contact-map-section {
  margin-top: 1rem;
}

.contact-map-wrap {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #eef2f7;
}

.contact-map-frame {
  display: block;
  width: 100%;
  min-height: 18rem;
  border: 0;
}

.contact-map-open {
  margin-top: 0.15rem;
}

@media (max-width: 860px) {
  .contact-meta-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .contact-tiles {
    grid-template-columns: 1fr;
  }

  .contact-tile--support {
    grid-column: auto;
  }

  .contact-tile-actions {
    flex-direction: column;
  }

  .contact-tile-actions .contact-btn {
    width: 100%;
  }
}


