/* =========================================================
   Infusing Capital — Portal / App UI
   ========================================================= */
body.app { background: #080706; overflow-x: hidden; }
body.app::after { opacity: .025; }
.app-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* Sidebar */
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d0b08, #080706);
  z-index: 50;
}
.side .logo { padding: 4px 10px 26px; font-size: 16px; }
.side .logo svg { width: 26px; height: 26px; }
.side-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 12px;
  border-radius: 11px;
  font-size: 14px; color: var(--muted);
  transition: background .25s, color .25s;
}
.side-nav a .ic { width: 18px; height: 18px; flex: none; }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.side-nav a.is-on { color: var(--text); background: linear-gradient(90deg, rgba(214,179,124,.14), rgba(214,179,124,.03)); }
.side-nav a.is-on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.side-nav a.is-on .ic { color: var(--gold-hi); }
.side-nav .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.side-nav .badge.dim { background: rgba(255,255,255,.08); color: var(--muted); }
.side-foot { margin-top: auto; }
.rm-card { padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(214,179,124,.1), rgba(214,179,124,.02)); }
.rm-card .rm { display: flex; align-items: center; gap: 10px; }
.rm-card .rm .av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-3); flex: none; }
.rm-card b { display: block; font-size: 13.5px; font-weight: 500; }
.rm-card span { font-size: 12px; color: var(--dim); }
.rm-card .btn { width: 100%; margin-top: 12px; }
.side-foot .out { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 8px; font-size: 13.5px; color: var(--dim); border-radius: 10px; }
.side-foot .out:hover { color: var(--text); background: rgba(255,255,255,.03); }
.side-foot .out .ic { width: 17px; height: 17px; }

/* Main + topbar */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 70px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 2.6vw, 36px);
  background: rgba(8,7,6,.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .crumb { font-size: 13.5px; color: var(--dim); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .crumb b { color: var(--text); font-weight: 500; }
.search-btn {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  width: min(360px, 34vw); height: 42px; padding: 0 12px 0 14px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.025);
  color: var(--dim); font-size: 13.5px;
  transition: border-color .3s;
}
.search-btn:hover { border-color: var(--line-3); }
.search-btn .ic { width: 16px; height: 16px; }
.search-btn kbd { margin-left: auto; font-family: inherit; font-size: 11px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: all .3s; flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line-3); }
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #080706, 0 0 8px var(--gold); }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; flex: none; }
.user-btn .av { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.user-btn .ic { width: 14px; height: 14px; color: var(--dim); }
.menu-btn { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  width: 360px; max-width: calc(100vw - 24px);
  border-radius: 18px; border: 1px solid var(--line-2);
  background: rgba(20,17,12,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow: hidden;
}
.dropdown.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dropdown h6 { margin: 0; padding: 16px 18px 12px; font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dropdown h6 button { font-size: 12px; color: var(--gold); }
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; transition: background .2s; cursor: pointer; }
.notif:hover { background: rgba(255,255,255,.025); }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(214,179,124,.1); color: var(--gold); }
.notif .ni .ic { width: 16px; height: 16px; }
.notif b { font-weight: 500; display: block; }
.notif span { color: var(--dim); font-size: 12px; }
.notif.unread b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: 8px; vertical-align: middle; }
.menu-list a, .menu-list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 18px; font-size: 13.5px; color: var(--muted); text-align: left; }
.menu-list a:hover, .menu-list button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.menu-list .ic { width: 16px; height: 16px; }

.content { padding: clamp(20px, 2.6vw, 36px); padding-bottom: 80px; flex: 1; }
.view { display: none; animation: viewIn .6s var(--ease); }
.view.is-on { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.v-head h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 300; letter-spacing: -0.035em; }
.v-head h1 em { font-family: var(--font-serif); font-style: italic; color: var(--gold-hi); }
.v-head p { color: var(--dim); font-size: 14px; margin-top: 6px; }
.v-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.01)); padding: 22px; position: relative; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-h h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.panel-h .sub { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.panel-h a, .panel-h .lnk { font-size: 13px; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.panel-h a .ic { width: 14px; height: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 20px 20px 18px; overflow: hidden; }
.kpi .k-top { display: flex; justify-content: space-between; align-items: center; }
.kpi .k-ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); }
.kpi .k-ic .ic { width: 17px; height: 17px; }
.kpi .delta { font-size: 12px; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.kpi .delta .ic { width: 13px; height: 13px; }
.kpi b { display: block; font-size: 32px; font-weight: 300; letter-spacing: -0.04em; margin-top: 18px; line-height: 1; }
.kpi span.l { font-size: 13px; color: var(--dim); margin-top: 8px; display: block; }
.kpi svg.spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 50px; opacity: .8; }

.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.seg-sm { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); }
.seg-sm button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; color: var(--dim); }
.seg-sm button.is-on { background: rgba(214,179,124,.15); color: var(--gold-hi); }

.chart { position: relative; height: 260px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; padding: 10px 12px; border-radius: 10px; background: rgba(20,17,12,.95); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .2s; }
.chart .tip b { display: block; font-size: 15px; font-weight: 500; }
.chart .tip span { color: var(--dim); }
.chart-sum { display: flex; gap: 32px; margin-bottom: 16px; flex-wrap: wrap; }
.chart-sum b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; }
.chart-sum span { font-size: 12px; color: var(--dim); }
.chart-sum .up { color: var(--green); font-size: 13px; }

.alloc { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.alloc .donut { width: 170px; height: 170px; position: relative; }
.alloc .donut svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.alloc .donut .ctr { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.alloc .donut .ctr b { display: block; font-size: 24px; font-weight: 300; }
.alloc .donut .ctr span { font-size: 11px; color: var(--dim); }
.alloc .lg { width: 100%; display: grid; gap: 9px; font-size: 13px; }
.alloc .lg div { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.alloc .lg i { width: 9px; height: 9px; border-radius: 3px; }
.alloc .lg b { margin-left: auto; color: var(--text); font-weight: 400; }

.app .opp-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app .opp-grid.four { grid-template-columns: repeat(4, 1fr); }
.app .opp-body { padding: 16px 16px 18px; }
.app .opp-body h4, .app .opp-body h3 { font-size: 17px; }
.app .opp-metrics { margin: 14px 0; padding: 12px 0; }
.app .opp-metrics b { font-size: 15px; }

.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(214,179,124,.1); color: var(--gold); }
.feed-item .fi.g { background: var(--green-bg); color: var(--green); }
.feed-item .fi.a { background: var(--amber-bg); color: var(--amber); }
.feed-item .fi .ic { width: 16px; height: 16px; }
.feed-item b { font-weight: 500; font-size: 14px; display: block; }
.feed-item p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.feed-item time { font-size: 12px; color: var(--dim); margin-left: auto; white-space: nowrap; }

.cal-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cal-item:last-child { border-bottom: 0; }
.cal-item .d { width: 50px; height: 54px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.cal-item .d b { font-size: 19px; font-weight: 400; line-height: 1; }
.cal-item .d span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.cal-item strong { font-weight: 500; font-size: 14px; display: block; }
.cal-item p { font-size: 12.5px; color: var(--dim); }
.cal-item .amt { margin-left: auto; font-size: 14px; color: var(--green); white-space: nowrap; }

/* Toolbar / filters */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .input, .toolbar .select { height: 42px; font-size: 13.5px; width: auto; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.toolbar .search .input { padding-left: 40px; width: 100%; }
.toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar .chips button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); transition: all .25s; }
.toolbar .chips button.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.toolbar .count { margin-left: auto; font-size: 13px; color: var(--dim); }
.empty { padding: 60px 20px; text-align: center; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 20px; }
.empty .ic { width: 30px; height: 30px; margin: 0 auto 14px; color: var(--gold); }
.empty b { display: block; color: var(--text); font-weight: 500; font-size: 16px; margin-bottom: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tbl th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.02); }
.tbl .nm { display: flex; align-items: center; gap: 12px; }
.tbl .nm img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.tbl .nm .fic { width: 36px; height: 42px; border-radius: 8px; background: linear-gradient(180deg, #2a251c, #16130e); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); flex: none; }
.tbl .nm .fic .ic { width: 16px; height: 16px; }
.tbl .nm b { font-weight: 500; display: block; }
.tbl .nm span { font-size: 12px; color: var(--dim); }
.tbl .pos { color: var(--green); }
.tbl .r { text-align: right; }

/* Deal room chat */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 70px - 72px - 110px); min-height: 520px; padding: 0; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.thread:hover { background: rgba(255,255,255,.02); }
.thread.is-on { background: rgba(214,179,124,.07); }
.thread img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; }
.thread b { font-weight: 500; font-size: 13.5px; display: block; }
.thread p { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.thread time { font-size: 11px; color: var(--dim); margin-left: auto; }
.convo { display: flex; flex-direction: column; min-width: 0; }
.convo-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.convo-h b { font-weight: 500; display: block; }
.convo-h span { font-size: 12px; color: var(--dim); }
.convo-h .chip { margin-left: auto; }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 72%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: viewIn .4s var(--ease); }
.msg.them { background: rgba(255,255,255,.045); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { margin-left: auto; background: linear-gradient(180deg, #e6c891, #c9a165); color: var(--ink); border-bottom-right-radius: 4px; }
.msg time { display: block; font-size: 10.5px; opacity: .55; margin-top: 4px; }
.msg.file { display: flex; gap: 12px; align-items: center; }
.msg.file .ic { width: 20px; height: 20px; color: var(--gold); }
.typing-dots { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.045); width: fit-content; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tdot 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
.composer .input { flex: 1; }
.composer .icon-btn { border-radius: 50%; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; padding: 0; }
.composer .send .ic { width: 18px; height: 18px; }

/* Profile */
.toggle { position: relative; width: 42px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.1); transition: background .3s; flex: none; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.toggle.is-on { background: var(--gold); }
.toggle.is-on::after { transform: translateX(18px); }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pref:last-child { border-bottom: 0; }
.pref span { color: var(--dim); font-size: 12.5px; display: block; }
.kyc-steps { display: grid; gap: 10px; }
.kyc-steps div { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.kyc-steps .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); flex: none; }
.kyc-steps .st .ic { width: 14px; height: 14px; }

/* Command palette */
.cmdk-bg { position: fixed; inset: 0; z-index: 950; background: rgba(4,3,2,.6); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.cmdk-bg.is-on { display: flex; animation: viewIn .3s var(--ease); }
.cmdk { width: min(620px, 100%); border-radius: 20px; border: 1px solid var(--line-2); background: rgba(20,17,12,.98); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(214,179,124,.08); overflow: hidden; }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-in .ic { width: 18px; height: 18px; color: var(--gold); }
.cmdk-in input { flex: 1; height: 60px; background: none; border: 0; outline: 0; font-size: 16px; color: var(--text); }
.cmdk-in kbd { font-family: inherit; font-size: 11px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 12px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; cursor: pointer; color: var(--muted); }
.cmdk-item .ic { width: 16px; height: 16px; color: var(--dim); }
.cmdk-item img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.cmdk-item span { margin-left: auto; font-size: 12px; color: var(--dim); }
.cmdk-item.is-sel { background: rgba(214,179,124,.1); color: var(--text); }
.cmdk-item.is-sel .ic { color: var(--gold); }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 960; background: rgba(4,3,2,.65); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.is-on { display: flex; animation: viewIn .35s var(--ease); }
.modal { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 24px; border: 1px solid var(--line-2); background: #14110c; box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); padding: 30px; position: relative; }
.modal h3 { font-size: 26px; font-weight: 300; letter-spacing: -0.03em; }
.modal p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.modal .x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.modal .x .ic { width: 15px; height: 15px; }
.modal .acts { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.modal .acts .btn { flex: 1; }
.nda-text { margin-top: 18px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 12.5px; color: var(--dim); line-height: 1.6; max-height: 180px; overflow-y: auto; }

/* ---------- Opportunity detail ---------- */
.od-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.od-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.od-back:hover { color: var(--text); }
.od-back .ic { width: 16px; height: 16px; }
.od-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; margin-bottom: 14px; }
.od-info { display: flex; flex-direction: column; padding: 28px; }
.od-info .sector { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.od-info h1 { font-size: clamp(34px, 3.4vw, 52px); font-weight: 300; letter-spacing: -0.04em; margin-top: 12px; line-height: 1.02; }
.od-info .loc { font-size: 15px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.od-info .loc .ic { width: 15px; height: 15px; color: var(--gold); }
.od-info .teaser { color: var(--muted); margin-top: 18px; font-size: 15px; max-width: 46ch; }
.od-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: auto; padding-top: 28px; }
.od-kpis div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.od-kpis b { display: block; font-size: clamp(15px, 1.25vw, 19px); font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; }
.od-kpis span { font-size: 11.5px; color: var(--dim); }
.od-gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 10px; }
.od-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; }
.od-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.od-main .chip { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(7,6,5,.6); backdrop-filter: blur(8px); }
.od-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.od-thumbs button { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid transparent; opacity: .55; transition: all .3s; }
.od-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.od-thumbs button.is-on, .od-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.od-body { display: grid; grid-template-columns: 1fr 360px; gap: 14px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs button { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: all .25s; }
.tabs button:hover { color: var(--text); }
.tabs button.is-on { background: var(--gold); color: var(--ink); font-weight: 500; }
.tab-pane { display: none; animation: viewIn .5s var(--ease); }
.tab-pane.is-on { display: block; }
.hl-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl-list li { display: flex; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; background: rgba(0,0,0,.15); }
.hl-list li i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); flex: none; margin-top: 7px; box-shadow: 0 0 8px var(--gold); }
.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv-grid div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv-grid span { display: block; font-size: 11.5px; color: var(--dim); }
.kv-grid b { font-weight: 400; font-size: 14.5px; display: block; margin-top: 4px; }
.thesis { font-size: 17px; line-height: 1.7; color: rgba(245,239,229,.82); }
.loc-map { position: relative; height: 360px; border-radius: 16px; overflow: hidden; background: #0b0a08; border: 1px solid var(--line); }
.loc-map svg { width: 100%; height: 100%; }
.lm-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.lm-list div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.lm-list b { display: block; font-size: 20px; font-weight: 300; letter-spacing: -0.02em; color: var(--gold-hi); }
.lm-list span { font-size: 13px; color: var(--muted); }
.scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scen div { padding: 18px; border-radius: 14px; border: 1px solid var(--line); text-align: center; }
.scen div.base { border-color: var(--gold); background: rgba(214,179,124,.06); }
.scen span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.scen b { display: block; font-size: 28px; font-weight: 300; letter-spacing: -0.03em; margin: 8px 0 2px; }
.scen small { font-size: 12.5px; color: var(--muted); }
.stackbar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; gap: 3px; }
.stackbar div { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; font-size: 12px; color: var(--ink); min-width: 0; overflow: hidden; white-space: nowrap; position: relative; transition: flex .8s var(--ease); }
.stackbar div b { font-size: 16px; font-weight: 600; }
.stackbar div.mine { outline: 2px solid var(--gold-hi); outline-offset: -2px; }
.stack-lg { display: grid; gap: 10px; margin-top: 18px; }
.stack-lg div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; }
.stack-lg i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.stack-lg b { margin-left: auto; font-weight: 400; }
.stack-lg .you { font-size: 11px; color: var(--gold-hi); border: 1px solid rgba(214,179,124,.4); padding: 2px 8px; border-radius: 999px; }
.doc-list { display: grid; gap: 8px; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); transition: border-color .3s; }
.doc-item:hover { border-color: var(--line-3); }
.doc-item .fic { width: 38px; height: 44px; border-radius: 8px; background: linear-gradient(180deg, #2a251c, #16130e); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); flex: none; }
.doc-item .fic .ic { width: 17px; height: 17px; }
.doc-item b { font-weight: 500; font-size: 14px; display: block; }
.doc-item span { font-size: 12px; color: var(--dim); }
.doc-item .act { margin-left: auto; }
.doc-item.locked { opacity: .6; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--gold); background: #080706; }
.tl-item.done::before { background: var(--gold); }
.tl-item time { font-size: 12px; color: var(--gold); letter-spacing: .04em; }
.tl-item b { display: block; font-weight: 500; margin-top: 4px; }
.tl-item p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.invest { position: sticky; top: 90px; padding: 24px; }
.invest h3 { font-size: 18px; font-weight: 500; }
.invest .min { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.amt-big { font-size: 40px; font-weight: 300; letter-spacing: -0.04em; margin: 22px 0 8px; }
.amt-big small { font-size: 16px; color: var(--dim); margin-left: 4px; }
input[type=range].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none; background: linear-gradient(90deg, var(--gold) var(--p, 20%), rgba(255,255,255,.08) var(--p, 20%)); cursor: pointer; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-hi); border: 4px solid #14110c; box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(214,179,124,.6); }
input[type=range].rng::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-hi); border: 4px solid #14110c; box-shadow: 0 0 0 1px var(--gold); }
.rng-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 8px; }
.proj { margin-top: 22px; display: grid; gap: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.proj div { display: flex; justify-content: space-between; padding: 12px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.proj div:last-child { border-bottom: 0; background: rgba(214,179,124,.06); }
.proj span { color: var(--muted); }
.proj b { font-weight: 500; font-variant-numeric: tabular-nums; }
.proj .g { color: var(--green); }
.invest .btn { width: 100%; margin-top: 12px; }
.invest .sub-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.invest .sub-acts .btn { margin-top: 0; }
.invest .disc { font-size: 11.5px; color: var(--faint); margin-top: 16px; line-height: 1.5; }
.team-mini { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.team-mini .av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.team-mini b { font-size: 13.5px; font-weight: 500; display: block; }
.team-mini span { font-size: 12px; color: var(--dim); }

/* Mobile app */
.m-tabbar { display: none; }
.m-invest { display: none; }
@media (max-width: 720px) {
  .m-invest { display: flex; position: fixed; left: 12px; right: 12px; bottom: 86px; z-index: 69; justify-content: space-between; box-shadow: 0 16px 40px -10px rgba(0,0,0,.8), 0 0 30px -10px var(--gold-glow); transition: transform .4s var(--ease), opacity .3s; }
  .m-invest small { font-size: 12px; opacity: .7; font-weight: 500; }
  .m-invest.is-hidden { transform: translateY(20px); opacity: 0; pointer-events: none; }
}
@media (max-width: 1280px) {
  .app .opp-grid.four { grid-template-columns: repeat(3, 1fr); }
  .od-body { grid-template-columns: 1fr 320px; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .5s var(--ease); box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  body.side-open .side { transform: none; }
  .menu-btn { display: grid; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1, .grid-1-1 { grid-template-columns: minmax(0, 1fr); }
  .app .opp-grid, .app .opp-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .od-hero, .od-body { grid-template-columns: minmax(0, 1fr); }
  .invest { position: static; }
  .chat { grid-template-columns: 1fr; }
  .threads { display: none; }
}
@media (max-width: 720px) {
  .topbar { height: 62px; gap: 8px; }
  .topbar .crumb { display: none; }
  .search-btn { width: auto; flex: 1; margin-left: 0; min-width: 0; }
  .app .opp-grid, .app .opp-grid.four { grid-template-columns: minmax(0, 1fr); }
  .search-btn kbd, .user-btn > span, .user-btn > .ic { display: none; }
  .user-btn { padding: 4px; }
  .content { padding: 16px 16px 100px; }
  .kpi b { font-size: 26px; }
  .kpi { padding: 16px; }
  .kpi .delta { font-size: 10.5px; text-align: right; max-width: 65%; line-height: 1.3; }
  .kpi span.l { font-size: 12px; position: relative; z-index: 1; }
  .kpi svg.spark { opacity: .45; height: 40px; }
  .kpis { gap: 10px; }
  .search-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .v-head .acts { width: 100%; }
  .v-head .acts .btn { flex: 1; }
  .chart-sum { gap: 18px 28px; }
  .chart-sum b { font-size: 22px; }
  .panel { padding: 18px; border-radius: 18px; }
  .tbl .nm b { white-space: nowrap; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar .select { flex: 1; width: auto !important; min-width: 0; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .toolbar .chips button { flex: none; }
  .toolbar .count { margin-left: 0; }
  .app .opp-grid, .app .opp-grid.four { grid-template-columns: minmax(0, 1fr); }
  .od-kpis, .lm-list { grid-template-columns: 1fr 1fr; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
  .hl-list, .scen { grid-template-columns: 1fr; }
  .chart { height: 210px; }
  .m-tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; height: 64px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(16,14,10,.92); backdrop-filter: blur(16px); justify-content: space-around; align-items: center; box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); }
  .m-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--dim); padding: 6px 10px; }
  .m-tabbar a .ic { width: 20px; height: 20px; }
  .m-tabbar a.is-on { color: var(--gold-hi); }
  .chat { height: calc(100vh - 62px - 200px); }
  .msg { max-width: 86%; }
  .od-info { padding: 22px; }
  .od-main { min-height: 240px; }
}
.side-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .4s; }
body.side-open .side-scrim { opacity: 1; pointer-events: auto; }

/* ---------- Login ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 36px clamp(28px, 4vw, 56px); isolation: isolate; }
.auth-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.7) brightness(.55); transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.16) translate(-2%, -1%); } }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,6,5,.6), rgba(7,6,5,.1) 40%, rgba(7,6,5,.92)), linear-gradient(90deg, transparent 60%, rgba(8,7,6,1)); }
.auth-art blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(34px, 3.4vw, 56px); line-height: 1.05; max-width: 16ch; }
.auth-art blockquote em { color: var(--gold-hi); }
.auth-stats { display: flex; gap: 36px; margin-top: 30px; }
.auth-stats b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; }
.auth-stats span { font-size: 12px; color: var(--dim); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px clamp(20px, 5vw, 80px); position: relative; }
.auth-form::before { content: ""; position: absolute; right: -20%; top: -20%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(214,179,124,.1), transparent); pointer-events: none; }
.auth-card { width: min(420px, 100%); position: relative; }
.auth-card h1 { font-size: 40px; font-weight: 300; letter-spacing: -0.04em; margin-top: 30px; }
.auth-card h1 em { font-family: var(--font-serif); font-style: italic; color: var(--gold-hi); }
.auth-card > p { color: var(--muted); margin-top: 10px; }
.auth-card form { display: grid; gap: 16px; margin-top: 32px; }
.pw { position: relative; }
.pw button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; color: var(--dim); }
.pw button:hover { color: var(--text); }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.auth-row a { color: var(--gold); }
.or { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--dim); margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { height: 56px; text-align: center; font-size: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); color: var(--text); outline: none; }
.otp input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214,179,124,.1); }
.auth-foot { margin-top: 28px; font-size: 13.5px; color: var(--dim); text-align: center; }
.auth-foot a { color: var(--gold-hi); }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--faint); margin-top: 22px; }
.secure .ic { width: 13px; height: 13px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(27,20,8,.25); border-top-color: #1b1408; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; }
  .auth-art blockquote { font-size: 32px; }
  .auth-stats { display: none; }
}
