/* customer/styles.css — Neo-style investor app (layers on shared/brand.css) */
.who-label { color: #cfe0f5; font-size: .8rem; }
.persona-select {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; padding: 6px 10px; font-size: .84rem;
}
.persona-select option { color: #0f1c2e; }

/* Indices ticker */
.ticker { background: var(--brand-900); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: flex; gap: 26px; padding: 8px 22px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ticker-track::-webkit-scrollbar { display: none; }
.tick { display: flex; align-items: baseline; gap: 8px; font-size: .82rem; color: #dbe7f7; }
.tick b { color: #fff; font-weight: 600; }
.tick .chg { font-size: .78rem; font-weight: 600; }

/* Tabs */
.tabbar { display: flex; gap: 4px; padding: 0 22px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 58px; z-index: 10; }
.tab { background: none; border: none; padding: 13px 16px; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-500); border-bottom-color: var(--brand-500); }

.wrap { display: grid; grid-template-columns: 1fr 372px; gap: 18px; max-width: 1320px; margin: 18px auto; padding: 0 22px; align-items: start; }
@media (max-width: 1080px) { .wrap { grid-template-columns: 1fr; } .col-side { order: -1; } }

/* Hero net-worth card */
.hero { background: linear-gradient(120deg, var(--brand-900), var(--brand-700)); color: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.hero .greet { font-size: .9rem; opacity: .85; }
.hero .nw { font-size: 2.1rem; font-weight: 800; margin: 4px 0 2px; letter-spacing: .3px; }
.hero .nw-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 12px; }
.hero .kv { font-size: .8rem; opacity: .85; }
.hero .kv b { display: block; font-size: 1.02rem; margin-top: 2px; opacity: 1; }
.hero .kv b.pos { color: #7ff0b4; } .hero .kv b.neg { color: #ff9a9a; }

.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.mini .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.mini .val { font-size: 1.12rem; font-weight: 700; margin-top: 3px; }
@media (max-width: 640px) { .grid-cards { grid-template-columns: repeat(2,1fr); } }

.block { margin-top: 16px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.block-head h3 { margin: 0; font-size: .98rem; }
.link-all { font-size: .78rem; color: var(--brand-500); cursor: pointer; }

/* horizontal scroll cards (popular stocks / funds / top picks) */
.scroller { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.qcard { min-width: 168px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); flex: none; }
.qcard .sym { font-weight: 700; font-size: .9rem; }
.qcard .nm { font-size: .72rem; color: var(--muted); margin: 2px 0 8px; height: 2.1em; overflow: hidden; }
.qcard .px { font-size: 1rem; font-weight: 700; }
.qcard .ret { font-size: .74rem; margin-top: 4px; }
.qcard .ret span { color: var(--muted); }

/* allocation bar */
.alloc { display: flex; height: 12px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.alloc i { display: block; height: 100%; }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.alloc-legend div { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* products grid */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: repeat(2,1fr); } }
.prod { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); position: relative; cursor: default; transition: transform .12s; }
.prod:hover { transform: translateY(-2px); }
.prod .ico { font-size: 1.5rem; }
.prod .pn { font-weight: 700; font-size: .9rem; margin-top: 8px; }
.prod .pd { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.prod .ptag { position: absolute; top: 10px; right: 10px; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 6px; background: var(--teal); color: #04231f; }
.prod-group { font-size: .74rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip2 { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }

.usecase h4 { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; color: var(--teal-dark); }
.usecase .uc-head { font-weight: 700; font-size: .95rem; }
.usecase .uc-detail { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.usecase .uc-bio { font-size: .8rem; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--surface-2); }

.assistant { margin-top: 16px; display: flex; flex-direction: column; }
.assistant .chat { height: 340px; }
.assist-foot { font-size: .7rem; color: var(--muted); margin-top: 6px; }
.mic-btn.rec { background: #fde7e7; border-color: #f3bcbc; }

.subtle { font-size: .78rem; color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.pnl-chip { font-weight: 600; }
