* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f1420; color: #e8edf5;
  line-height: 1.45; padding: 0 0 40px;
  -webkit-text-size-adjust: 100%;
}
header {
  padding: 20px 16px 14px; text-align: center;
  background: linear-gradient(180deg, #182238, #0f1420);
  border-bottom: 1px solid #26314a;
}
header h1 { font-size: 22px; }
header .sub { font-size: 13px; color: #8aa0c0; margin-top: 4px; }

section { padding: 18px 14px 4px; max-width: 720px; margin: 0 auto; }
section h2 { font-size: 18px; margin-bottom: 6px; }
.hint { font-size: 13.5px; color: #9db0cd; margin-bottom: 14px; }

.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: #182238; border: 1px solid #26314a; border-radius: 14px;
  padding: 16px;
}
.card.loading { color: #7f92b3; text-align: center; }

.bot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bot-name { font-size: 18px; font-weight: 700; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.badge.on { background: #10391f; color: #4ade80; }
.badge.off { background: #3a1414; color: #f87171; }

.bignum { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.bignum.pos { color: #4ade80; }
.bignum.neg { color: #f87171; }
.bignum.zero { color: #cbd6e8; }
.bignum-cap { font-size: 12.5px; color: #90a2c2; margin-top: 2px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.metric { background: #101a2e; border-radius: 10px; padding: 10px 12px; }
.metric .val { font-size: 20px; font-weight: 700; }
.metric .lbl { font-size: 11.5px; color: #90a2c2; margin-top: 2px; }
.metric .val.pos { color: #4ade80; }
.metric .val.neg { color: #f87171; }

.virt-tag {
  display: inline-block; font-size: 11px; color: #f0c674;
  background: #2e2612; padding: 2px 8px; border-radius: 6px; margin-bottom: 10px;
}

/* Стратегии */
.strat-list { display: flex; flex-direction: column; gap: 14px; }
.strat {
  background: #182238; border: 1px solid #26314a; border-radius: 14px; padding: 16px;
}
.strat .st-title { font-size: 17px; font-weight: 700; }
.strat .st-type { font-size: 12px; color: #6ea8fe; margin: 3px 0 8px; }
.strat .st-human { font-size: 14px; color: #c5d3ea; margin-bottom: 12px; }
.period-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.period-btns button, .btn-soon {
  border: 1px solid #33507f; background: #1b2c4a; color: #dbe6f7;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; flex: 1; min-width: 120px;
}
.period-btns button:active { background: #274169; }
.period-btns button:disabled { opacity: .5; }
.btn-soon { background: #2a2130; border-color: #5a4a6a; color: #d8c8e8; width: 100%; margin-top: 6px; }

.result {
  margin-top: 14px; padding: 14px; border-radius: 12px; background: #101a2e;
  border-left: 5px solid #33507f;
}
.result .r-line { font-size: 14.5px; margin-bottom: 6px; }
.result .r-big { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.result .r-verdict {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.v-green { background: #10391f; color: #7ff0a8; }
.v-yellow { background: #33300f; color: #f2e39a; }
.v-orange { background: #3a2812; color: #f6b980; }
.v-red { background: #3a1414; color: #ffa0a0; }
.v-gray { background: #24303f; color: #b9c6da; }

.calc { font-size: 14px; color: #9db0cd; margin-top: 12px; }
.spinner {
  display: inline-block; width: 15px; height: 15px; border: 3px solid #3a4a66;
  border-top-color: #6ea8fe; border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: middle; margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.deploy-msg { font-size: 13.5px; color: #f0c674; margin-top: 10px; }

footer {
  max-width: 720px; margin: 24px auto 0; padding: 16px 14px;
  font-size: 12.5px; color: #7f92b3; text-align: center;
  border-top: 1px solid #26314a;
}
