/* Bot Profile page — specific styles. Inherits from vs-page.css */

.bp-hero {
  padding: 28px 0 0;
}

/* avatar + name block */
.bp-head {
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.bp-head .av {
  width: 96px; height: 96px;
  border-radius: 10px;
  background: var(--anth);
  color: white;
  display:grid; place-items:center;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -2px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.bp-head .av::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.22), transparent 60%);
}
.bp-head .info h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
  margin: 0 0 8px;
  display:flex; align-items:center; gap: 12px;
  flex-wrap: wrap;
}
.bp-head .info h1 .verified {
  display:inline-flex; align-items:center; justify-content:center;
  width: 22px; height: 22px;
  background: var(--accent); color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.bp-head .info .meta {
  display:flex; gap: 10px; align-items:center; flex-wrap:wrap;
  font-size: 14px; color: var(--ink-3);
}
.bp-head .info .meta a { color: var(--ink); font-weight: 500; text-decoration: none; }
.bp-head .info .meta a:hover { color: var(--accent); }
.bp-head .actions {
  display:flex; gap: 8px;
  flex: 0 0 auto;
}
.bp-head .btn {
  font: inherit;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
}
.bp-head .btn.primary {
  background: var(--ink); color: white; border-color: var(--ink);
}
.bp-head .btn.primary:hover { background: var(--accent); border-color: var(--accent); }

/* big value strip */
.bp-stripe {
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.bp-stripe .cell {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
}
.bp-stripe .cell:last-child { border-right: none; }
.bp-stripe .cell .lbl {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-3); margin-bottom: 8px;
}
.bp-stripe .cell .v {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1;
}
.bp-stripe .cell.big .v { font-size: 44px; }
.bp-stripe .cell .v.up { color: var(--up); }
.bp-stripe .cell .v.dn { color: var(--down); }
.bp-stripe .cell .sub {
  font-size: 12px; color: var(--ink-3); margin-top: 6px;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
}

/* currently-thinking callout */
.thinking {
  margin-top: 28px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.thinking::after {
  content:""; position:absolute; top:-80px; right:-80px;
  width: 240px; height: 240px;
  background: var(--accent); opacity: 0.18;
  border-radius: 50%;
  filter: blur(20px);
}
.thinking > * { position: relative; }
.thinking .kicker {
  display:flex; align-items:center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.thinking .kicker::before {
  content:""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.4s infinite;
}
.thinking .quote {
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  font-weight: 500;
  max-width: 920px;
}
.thinking .quote::before { content: "\201C"; }
.thinking .quote::after { content: "\201D"; }
.thinking .trade {
  margin-top: 18px;
  display:flex; align-items:center; gap: 10px;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 14px;
}
.thinking .trade .ax {
  padding: 3px 8px;
  font-size: 11px; font-weight: 700;
  border-radius: 3px;
  color: white;
}
.thinking .trade .ax.buy { background: var(--up); }
.thinking .trade .ax.sell { background: var(--down); }
.thinking .trade .when {
  margin-left: auto;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

/* main chart */
.bp-chartwrap {
  margin-top: 32px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 24px;
}
.bp-chart-head {
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom: 18px;
}
.bp-chart-head h2 {
  margin: 0;
  font-size: 18px; font-weight: 600;
  display:flex; align-items:center; gap: 16px;
}
.bp-chart-head h2 .legendpoint {
  display:inline-flex; align-items:center; gap: 6px;
  font-size: 12px; color: var(--ink-3); font-weight: 500;
}
.bp-chart-head h2 .legendpoint::before {
  content:""; width: 12px; height: 3px; border-radius: 2px;
}
.bp-chart-head h2 .legendpoint.bot::before { background: var(--ink); }
.bp-chart-head h2 .legendpoint.spy::before { background: var(--ink-3); border: 1px dashed transparent; height: 1px; border-top: 2px dashed var(--ink-3); }
.bp-chart-area {
  position: relative;
  height: 320px;
}
.bp-chart-area svg { display:block; width:100%; height:100%; overflow:visible; }
.bp-chart-area .ax-line { stroke: var(--rule-2); stroke-width: 1; }
.bp-chart-area .ax-text { font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace; font-size: 10px; fill: var(--ink-3); }
.bp-chart-area .equity { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bp-chart-area .equity-area { fill: rgba(255,106,0,0.06); stroke: none; }
.bp-chart-area .benchmark { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bp-chart-area .trade-marker {
  position: absolute;
  transform: translate(-50%, -50%);
}
.bp-chart-area .trade-marker .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--up);
  box-shadow: 0 0 0 3px var(--bg);
}
.bp-chart-area .trade-marker.sell .dot { border-color: var(--down); }
.bp-chart-area .trade-marker .tip {
  position:absolute;
  white-space: nowrap;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 11px; font-weight: 600;
  background: var(--ink); color: white;
  padding: 2px 6px; border-radius: 3px;
  margin-top: 8px; left: 50%; transform: translateX(-50%);
}

/* stats grid */
.bp-stats {
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 28px;
}
@media (max-width: 980px) { .bp-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .bp-stats { grid-template-columns: repeat(2, 1fr); } }
.bp-stats .cell {
  padding: 18px 20px;
  border-right: 1px solid var(--rule-2);
}
.bp-stats .cell:last-child { border-right: none; }
.bp-stats .cell .lbl {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-3); margin-bottom: 8px;
}
.bp-stats .cell .v {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.4px; line-height: 1;
}
.bp-stats .cell .v.up { color: var(--up); }
.bp-stats .cell .v.dn { color: var(--down); }
.bp-stats .cell .rank {
  font-size: 11px; color: var(--ink-3);
  margin-top: 6px;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
}
.bp-stats .cell .rank b { color: var(--ink); font-weight: 600; }

/* main two-column section */
.bp-grid {
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-top: 36px;
}
@media (max-width: 1080px) { .bp-grid { grid-template-columns: 1fr; } }

.bp-section h2 {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  display:flex; align-items:center; justify-content:space-between;
}
.bp-section h2 .ct {
  font-size: 12px; color: var(--ink-3);
  font-weight: 400;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
}

/* trades list */
.bp-trades {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.bp-trade {
  display:grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-2);
  align-items: start;
}
.bp-trade:last-child { border-bottom: none; }
.bp-trade .when {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 11px; color: var(--ink-3);
}
.bp-trade .when .date { display:block; }
.bp-trade .when .time { color: var(--ink-2); font-size: 13px; }
.bp-trade .body .row1 {
  display:flex; align-items:center; gap: 8px;
  flex-wrap:wrap;
  margin-bottom: 6px;
  font-size: 14px;
}
.bp-trade .body .row1 .ax {
  padding: 2px 7px;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 11px; font-weight: 700;
  border-radius: 3px;
  color: white;
}
.bp-trade .body .row1 .ax.buy { background: var(--up); }
.bp-trade .body .row1 .ax.sell { background: var(--down); }
.bp-trade .body .row1 .sym {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-weight: 700;
}
.bp-trade .body .row1 .qty {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  color: var(--ink-2); font-size: 13px;
  white-space: nowrap;
}
.bp-trade .body .reasoning {
  font-size: 13px; color: var(--ink-2);
  font-style: italic; line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid var(--rule-2);
}
.bp-trade .body .reasoning::before { content: "\201C"; color: var(--ink-3); margin-right: 2px; }
.bp-trade .body .reasoning::after { content: "\201D"; color: var(--ink-3); margin-left: 2px; }
.bp-trade .body .outcome {
  margin-top: 8px;
  display:inline-block;
  padding: 2px 7px;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 11px; font-weight: 600;
  border-radius: 3px;
  white-space: nowrap;
}
.bp-trade .body .outcome.up { background: var(--up-soft); color: var(--up); }
.bp-trade .body .outcome.dn { background: var(--down-soft); color: var(--down); }
.bp-trade .body .outcome.open { background: var(--bg-2); color: var(--ink-3); }
.bp-trade .val {
  text-align: right;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-variant-numeric: tabular-nums;
}
.bp-trade .val .amount { font-size: 15px; font-weight: 600; }

/* right sidebar */
.bp-side > * { margin-bottom: 24px; }
.bp-side .card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px;
}
.bp-side .card h3 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-3);
  margin: 0 0 14px;
}

/* holdings rows */
.h-row {
  display:grid;
  grid-template-columns: 60px 1fr 80px 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-2);
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.h-row:last-child { border-bottom: none; }
.h-row .sym { font-weight: 700; font-size: 14px; }
.h-row .pct { color: var(--ink-3); font-size: 11px; text-align:right; }
.h-row .bar {
  height: 12px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.h-row .bar .fill {
  position:absolute; left:0; top:0; bottom:0;
  background: var(--ink);
}
.h-row .bar .fill.cash {
  background: var(--bg-3);
  border: 1px solid var(--rule-2);
}
.h-row .val { text-align: right; font-weight: 600; }

/* monthly returns heatmap */
.heatmap {
  display:grid;
  grid-template-columns: 32px repeat(12, 1fr);
  gap: 3px;
  font-size: 10px;
}
.heatmap .yr {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-weight: 600;
  display:flex; align-items:center;
  color: var(--ink-3);
}
.heatmap .mlbl {
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  color: var(--ink-3);
  text-align: center;
  padding: 2px 0;
}
.heatmap .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--bg-2);
  display:grid; place-items:center;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-2);
}
.heatmap .cell.empty { background: var(--bg-2); opacity: 0.3; }

/* about box */
.about-row {
  display:flex; justify-content:space-between; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-2);
  font-size: 13px;
}
.about-row:last-child { border-bottom: none; }
.about-row .k { color: var(--ink-3); white-space: nowrap; flex: 0 0 auto; }
.about-row .v { font-weight: 500; text-align: right; }

.prompt-box {
  background: var(--ink);
  color: white;
  border-radius: 6px;
  padding: 18px;
  font-family: "IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 12px;
}
.prompt-box .h { color: var(--accent); }

/* small share-card teaser */
.share-promo {
  background: var(--bg-2);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: 18px;
  display:flex; justify-content:space-between; align-items:center;
  gap: 14px;
}
.share-promo .l {
  font-size: 13px;
}
.share-promo .l b { display:block; font-size: 14px; margin-bottom: 2px; }
.share-promo .btn {
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--ink); color: white;
  border-radius: 4px;
  cursor: pointer;
}

/* mini-sparkline in stripe */
.mini-spark {
  height: 50px; margin-top: 8px;
}
.mini-spark svg { width: 100%; height: 100%; }
.mini-spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
