/* Ruin Coin – KI-Trading-Bots */
.bot-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bot-layout { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 16px; align-items: start; }
.bot-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 980px) { .bot-layout, .bot-bottom { grid-template-columns: 1fr; } }

.bot-label { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.bot-label b { text-transform: none; letter-spacing: 0; font-size: .9rem; }

.bot-strats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bot-strat { text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  color: var(--text); cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; font: inherit; transition: border-color .15s, background .15s; }
.bot-strat .bs-ico { grid-row: span 2; font-size: 1.5rem; }
.bot-strat small { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.bot-strat:hover { border-color: var(--gold-dark); }
.bot-strat.sel { border-color: var(--gold); background: rgba(212,175,55,.08); box-shadow: 0 0 0 1px var(--gold) inset; }

.bot-risks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bot-risk { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .55em .3em; color: var(--text);
  font: 600 .82rem Inter, sans-serif; cursor: pointer; }
.bot-risk.sel { color: #111; border-color: transparent; }
.bot-risk.risk-low.sel { background: #3ecf7a; }
.bot-risk.risk-medium.sel { background: #f3d77a; }
.bot-risk.risk-high.sel { background: #f08a3c; }
.bot-risk.risk-degen.sel { background: #ef5b5b; }
.bot-riskinfo { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; color: var(--muted); margin-top: 8px;
  padding: 8px 10px; border-radius: 10px; background: var(--bg2); border-left: 3px solid var(--line); }
.bot-riskinfo.risk-low { border-left-color: #3ecf7a; } .bot-riskinfo.risk-medium { border-left-color: #f3d77a; }
.bot-riskinfo.risk-high { border-left-color: #f08a3c; } .bot-riskinfo.risk-degen { border-left-color: #ef5b5b; }
.tag.risk-low { color: #3ecf7a; border-color: rgba(62,207,122,.4); } .tag.risk-medium { color: #f3d77a; border-color: rgba(243,215,122,.4); }
.tag.risk-high { color: #f08a3c; border-color: rgba(240,138,60,.4); } .tag.risk-degen { color: #ef5b5b; border-color: rgba(239,91,91,.4); }

.bot-budget { display: flex; align-items: center; gap: 8px; }
.bot-budget input { flex: 1; min-width: 0; font-size: 1.1rem; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.bot-chip { background: var(--bg2); border: 1px solid var(--line); border-radius: 99px; padding: .3em .8em; color: var(--text);
  font: 600 .8rem Inter, sans-serif; cursor: pointer; }
.bot-chip:hover { border-color: var(--gold-dark); }
.bot-chip.sel { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.bot-sliders input[type=range] { width: 100%; accent-color: var(--down); }
.bot-sliders small { display: block; margin-top: 4px; font-size: .72rem; }
.bot-summary { margin: 16px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(212,175,55,.06);
  border: 1px dashed var(--gold-dark); font-size: .85rem; }

.bot-running h3 { margin-top: 0; }
.bot-card { margin-bottom: 12px; }
.bc-head { display: flex; align-items: center; gap: 10px; }
.bc-head .bs-ico { font-size: 1.8rem; }
.bc-head > div { flex: 1; min-width: 0; }
.bc-value { font: 700 1.5rem Inter, sans-serif; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.bc-value [data-pnl] { font-size: 1rem; margin-left: 6px; }
.bc-track { position: relative; height: 8px; border-radius: 99px; margin: 8px 0 22px;
  background: linear-gradient(90deg, rgba(239,91,91,.5), rgba(255,255,255,.08) 50%, rgba(62,207,122,.5)); }
.bc-start { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--muted); }
.bc-dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 2px solid #111; transition: left .6s ease; }
.bc-dot.pos { background: var(--up); box-shadow: 0 0 10px var(--up); } .bc-dot.neg { background: var(--down); box-shadow: 0 0 10px var(--down); }
.bc-sl, .bc-tp { position: absolute; top: 12px; font-size: .7rem; color: var(--muted); }
.bc-sl { left: 0; } .bc-tp { right: 0; }
.bc-pos { height: 6px; border-radius: 99px; background: rgba(62,207,122,.25); overflow: hidden; }
.bc-pos-rc { height: 100%; background: var(--gold); transition: width .6s; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin: 8px 0; }
.bc-log { border-top: 1px solid var(--line); padding-top: 6px; }
.bc-log-row { display: grid; grid-template-columns: 70px 100px 1fr auto; gap: 8px; font-size: .78rem; padding: 3px 0; align-items: center; }
.bc-log-row > span:first-child { font-weight: 700; }
@media (max-width: 520px) {
  .bot-strats { grid-template-columns: 1fr; }
  .bot-risks { grid-template-columns: 1fr 1fr; }
  .bc-log-row { grid-template-columns: 60px 1fr; }
  .bc-log-row small { grid-column: span 2; }
}
.bot-hist td { font-size: .85rem; }

/* Aktien & Kryptos */
.sec-depot { display: flex; flex-direction: column; align-items: flex-end; padding: 10px 16px; gap: 2px; }
.sec-depot b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.sec-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.6rem;
  background: var(--bg2); border: 1px solid var(--line); flex: none; }
.sec-ico.sm { width: 34px; height: 34px; font-size: 1.15rem; border-radius: 9px; }
.sec-list { display: flex; flex-direction: column; margin-top: 10px; max-height: 520px; overflow-y: auto; }
.sec-row { display: grid; grid-template-columns: 34px 1fr auto 74px 92px; gap: 10px; align-items: center; padding: 8px 6px;
  border-bottom: 1px solid var(--line); border-radius: 8px; font-variant-numeric: tabular-nums; }
.sec-row:hover { background: var(--bg2); }
.sec-row.sel { background: rgba(212,175,55,.08); box-shadow: inset 3px 0 0 var(--gold); }
.sec-nm { display: flex; flex-direction: column; min-width: 0; }
.sec-nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-pr { text-align: right; font-weight: 600; }
.sec-my { text-align: right; font-size: .8rem; color: var(--gold2); }
.sec-pos { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
@media (max-width: 600px) {
  .sec-row { grid-template-columns: 30px 1fr auto 64px; }
  .sec-my { display: none; }
  .sec-depot { align-items: flex-start; }
}
