:root{
  color-scheme: dark;

  --bg:#050507;
  --border:rgba(255,255,255,.10);

  --text:#e9eef7;
  --muted:#9aa6bb;

  --accent:#7c3aed;
  --accent2:#06b6d4;
  --accent3:#ec4899;

  --good:#22c55e;
  --warn:#f59e0b; /* Failed = ORANGE */
  --bad:#ef4444;  /* Verstoß = ROT */
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(1200px 650px at 18% 10%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(900px 520px at 80% 12%, rgba(6,182,212,.16), transparent 55%),
    radial-gradient(900px 620px at 70% 88%, rgba(236,72,153,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}

.container{max-width:1300px;margin:0 auto;padding:18px}

/* ===== Fancy text ===== */
.gradientText{
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.glow{
  text-shadow:
    0 0 18px rgba(124,58,237,.28),
    0 0 22px rgba(6,182,212,.20),
    0 0 26px rgba(236,72,153,.18);
}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, rgba(12,12,18,.92), rgba(8,8,12,.78));
  backdrop-filter: blur(10px);
}
.topbar-inner{
  max-width:1300px;
  margin:0 auto;
  padding:14px 18px;
  min-height:104px; /* bisschen höher wegen größerem Logo */
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.titleCenter{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}

.topTitle{
  font-weight:1200;
  font-size:44px;
  letter-spacing:.2px;
  line-height:1;
}
.topBrand{
  font-weight:1100;
  font-size:16px;
  letter-spacing:.2px;
  line-height:1;
  opacity:.95;
}

.topRight{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
}

.miniStack{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ✅ Logo größer */
.topLogo{
  width:78px;
  height:78px;
  border-radius:18px;
  object-fit:contain;
  padding:8px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.42);
}

/* ===== Buttons ===== */
.btn{
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color:var(--text);
  padding:11px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:1000;
}
.btn:hover{border-color:rgba(255,255,255,.18)}
.btn.danger{
  border-color:rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}

/* ===== Cards ===== */
.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius:20px;
  padding:14px;
  backdrop-filter: blur(10px);
}
.cardTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.cardTitle h2{
  margin:0;
  font-size:14px;
  letter-spacing:.2px;
  color:var(--muted);
  font-weight:900;
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color:var(--muted);
}
.badge.good{color:var(--good);border-color:rgba(34,197,94,.25)}
.badge.warn{color:var(--warn);border-color:rgba(245,158,11,.28)}
.badge.danger{color:var(--bad);border-color:rgba(239,68,68,.28)}

/* rechte Box rows */
.statRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background: rgba(0,0,0,.28);
}
.statRow b{font-weight:1100}

.numGood{ color: var(--good); font-weight:1100; }
.numWarn{ color: var(--warn); font-weight:1100; }
.numBad{  color: var(--bad);  font-weight:1100; }

/* ✅ Live: Gesamt steht einzeln */
.statRowSolo{
  margin-bottom:10px;
  border-color:rgba(255,255,255,.18);
  background: rgba(0,0,0,.32);
}
.statGroup{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* ===== Layout ===== */
.main{padding:18px}
.dashGrid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:14px;
  align-items:start;
}
@media(max-width:980px){
  .dashGrid{grid-template-columns:1fr}
}
.leftArea{display:flex;flex-direction:column;gap:14px}
.rightCol{display:flex;flex-direction:column;gap:14px}

/* ===== Profit Board (mit Chart) ===== */
.profitBoard{
  min-height:360px;
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.26));
  padding:18px 18px 14px 18px;
}
.profitBoard::before{
  content:"";
  position:absolute;inset:-2px;
  background:
    radial-gradient(520px 360px at 20% 10%, rgba(124,58,237,.25), transparent 60%),
    radial-gradient(520px 360px at 88% 18%, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(540px 380px at 70% 95%, rgba(236,72,153,.12), transparent 60%);
  pointer-events:none;
}
.profitHeader{
  position:relative;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.2px;
}
.profitValue{
  position:relative;
  margin-top:6px;
  font-size:38px;
  font-weight:1200;
  line-height:1;
}
.profitSub{
  position:relative;
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

.profitChartWrap{
  position:relative;
  margin-top:18px;
}
.profitChart{
  width:100%;
  height:auto;
  display:block;
  filter: drop-shadow(0 16px 26px rgba(124,58,237,.14));
}
.chartLabels{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

/* 0-Trades Hinweis */
.noTradesHint{
  margin-top:14px;
  padding:14px;
  text-align:center;
  font-size:13px;
  color:var(--muted);
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  background: rgba(0,0,0,.18);
}

/* ===== KPIs ===== */
.bottomStats{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:12px;
}
@media(max-width:1100px){
  .bottomStats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){
  .bottomStats{grid-template-columns:1fr}
}
.kpi{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  border-radius:18px;
  padding:14px;
  min-height:90px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.kpi .label{color:var(--muted);font-size:12px}
.kpi .value{font-size:22px;font-weight:1100;margin-top:6px}
.kpi .icon{opacity:.9}

/* ===== Action Buttons (Hedges) ===== */
.actionGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.actionBtn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.24);
  border-radius:18px;
  padding:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.actionBtn:hover{
  border-color:rgba(255,255,255,.18);
  background: rgba(0,0,0,.30);
}
.actionBtn .left{display:flex;flex-direction:column;gap:4px}
.actionBtn .title{font-weight:1100;font-size:14px}
.actionBtn .desc{font-size:12px;color:var(--muted)}
.pill{
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(124,58,237,.35);
  background: rgba(124,58,237,.14);
}

/* ===== Login ===== */
.loginWrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.35);
  color:var(--text);
  outline:none;
}
.input:focus{
  border-color:rgba(124,58,237,.55);
  box-shadow:0 0 0 4px rgba(124,58,237,.12);
}
.row{display:flex;gap:10px;flex-wrap:wrap}
.small{font-size:12px;color:var(--muted)}

/* ===== EG/PROP Table (global) ===== */
.egpTable{width:100%; border-collapse:collapse;}
.egpTable th,.egpTable td{
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:10px 10px;
  text-align:left;
  vertical-align:top;
  font-size:13px;
}
.egpTable th{color:var(--muted);font-weight:900;font-size:12px;}
.egpTdSmall{color:var(--muted);font-size:12px;white-space:pre-wrap;}

.egpPnLpos{color:var(--good);font-weight:900;}
.egpPnLneg{color:var(--bad);font-weight:900;}
