/* Investments listing + detail + invest dialog (loaded after pages.css and properties.css). */
.ns-btn--dark { background: #111; color: #fff; }

/* cards */
.ns-icard__type { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #777; }
.ns-icard__loc { margin: 0; font-size: .88rem; color: #555; }
.ns-icard__loc i { color: #999; margin-right: 2px; }
.ns-icard__row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: #333; margin-top: 6px; }
.ns-icard__btns { display: flex; gap: 8px; margin-top: 14px; }
.ns-icard__btns .ns-btn { flex: 1; padding: 9px 10px; font-size: .88rem; }
.ns-icard .ns-pcard__title a:hover { text-decoration: underline; }

/* progress */
.ns-prog { margin-top: 10px; }
.ns-prog__bar { height: 8px; border-radius: 99px; background: #e5e5ea; overflow: hidden; }
.ns-prog__bar span { display: block; height: 100%; border-radius: 99px; background: #111; transition: width .4s ease; }
.ns-prog__txt { margin: 5px 0 0; font-size: .8rem; color: #666; }

/* ROI box */
.ns-roi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f4f4f6; }
.ns-roi strong { font-size: 1.35rem; color: #111; }
.ns-roi span { font-size: .82rem; color: #555; }

/* detail */
.ns-invest-cta { margin-top: 22px; }
.ns-invest-cta .ns-btn { width: 100%; padding: 13px 16px; font-size: 1rem; }
.ns-help { margin: 10px 0 0; font-size: .85rem; color: #555; text-align: center; }
.ns-disc { margin-top: 28px; font-size: .8rem; color: #777; }
.ns-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #ddd; }
.ns-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 18px 16px; }
.ns-timeline li:last-child { padding-bottom: 0; }
.ns-timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #bbb; box-sizing: border-box; }
.ns-timeline li.is-done::before { background: #111; border-color: #111; }
.ns-timeline strong { font-size: .92rem; }
.ns-timeline span { font-size: .88rem; color: #555; }
.ns-msg { padding: 10px 12px; border-radius: 6px; background: #f0f0f3; font-size: .9rem; margin-top: 10px; }

/* invest dialog */
.ns-modal { position: fixed; inset: 0; margin: auto; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 12px; padding: 0; background: #fff; color: #111; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: auto; }
.ns-modal::backdrop { background: rgba(0,0,0,.55); }
.ns-modal__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid #e5e5ea; }
.ns-modal__head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.ns-modal__close { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f0f3; cursor: pointer; }
.ns-modal__close:hover { background: #e2e2e8; }
.ns-modal__body { padding: 18px 20px 22px; }
.ns-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ns-form--flat { border: 0; padding: 0; margin: 0; }
.ns-form--flat input[type=number], .ns-form--flat select { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #bbb; border-radius: 6px; font-size: .95rem; background: #fff; }
.ns-hint { margin: 6px 0 0; font-size: .82rem; color: #666; }

/* payment step */
.ns-pay-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 6px; padding: 14px; border-radius: 8px; background: #f4f4f6; }
.ns-pay-sum dt { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.ns-pay-sum dd { margin: 2px 0 0; font-weight: 700; word-break: break-word; }
.ns-pay-card { margin-top: 14px; padding: 16px; border: 1px solid #ddd; border-radius: 10px; }
.ns-pay-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.ns-pay-instr { white-space: pre-line; font-size: .92rem; line-height: 1.55; color: #333; margin: 0 0 10px; }
.ns-pay-rows { margin: 0; border: 1px solid #e2e2e8; border-radius: 8px; }
.ns-pay-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.ns-pay-rows > div + div { border-top: 1px solid #e2e2e8; }
.ns-pay-rows dt { font-size: .75rem; color: #777; }
.ns-pay-rows dd { margin: 0; font-weight: 600; word-break: break-word; }
.ns-copy { flex: 0 0 auto; border: 1px solid #bbb; background: #fff; border-radius: 6px; padding: 5px 11px; font-size: .78rem; cursor: pointer; }
.ns-copy:hover { background: #f2f2f2; }
.ns-receipt { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5e5ea; }
.ns-receipt h3 { margin: 0 0 8px; font-size: 1rem; }
.ns-receipt input[type=file] { display: block; width: 100%; margin: 8px 0 0; font-size: .9rem; }
.ns-receipt .ns-btn { width: 100%; margin-top: 12px; }
.ns-msg--ok { background: #e7f6ec; color: #1c5b34; }
.ns-msg--err { background: #fdecec; color: #8f1d1d; }

/* three filters fit on one row on wide screens */
@media (min-width: 961px) {
  #ns-filters { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; }
  #ns-filters .ns-field--kw { grid-column: auto; }
  #ns-filters .ns-hs__go { padding: 0 28px; }
}
