*{box-sizing:border-box}
body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#0b1220;
    color:#edf2f7;
}
.app{
    max-width:1400px;
    margin:0 auto;
    padding:20px;
}
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
    background:linear-gradient(135deg,#121826,#1b2438);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:20px;
}
.topbar h1{
    margin:0;
    font-size:32px;
    letter-spacing:1px;
}
.topbar p{
    margin:8px 0 0;
    color:#9aa4b2;
}
.grid{
    display:grid;
    grid-template-columns:1.35fr .75fr;
    gap:20px;
}
.panel{
    background:#111827;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}
.panel-head h2,
.stats-card h3{
    margin:0;
}
.badge{
    background:#1f2937;
    color:#f8fafc;
    border:1px solid rgba(255,255,255,.08);
    padding:8px 12px;
    border-radius:999px;
    font-size:13px;
}
.table-wrap{
    overflow:auto;
}
.trade-table{
    width:100%;
    border-collapse:collapse;
    min-width:780px;
}
.trade-table th,
.trade-table td{
    border-bottom:1px solid rgba(255,255,255,.07);
    padding:10px 8px;
    text-align:center;
}
.trade-table th{
    color:#cbd5e1;
    background:#0f172a;
    position:sticky;
    top:0;
}
.trade-table td.num{
    font-weight:700;
}
select,
input{
    width:100%;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.1);
    background:#0f172a;
    color:#fff;
    outline:none;
}
select:focus,
input:focus{
    border-color:#38bdf8;
}
.btn{
    border:none;
    border-radius:12px;
    padding:11px 14px;
    cursor:pointer;
    font-weight:700;
}
.btn-gold{
    background:linear-gradient(135deg,#f59e0b,#facc15);
    color:#111827;
}
.btn-save{
    background:#22c55e;
    color:#07120a;
}
.btn-save:hover{
    filter:brightness(1.06);
}
.stats-card{
    display:flex;
    flex-direction:column;
    gap:18px;
}
.stat-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    align-items:center;
}
.stat-grid label{
    color:#cbd5e1;
    font-size:14px;
}
.summary{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
}
.sum-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 14px;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.07);
    border-radius:12px;
}
.sum-row span{
    color:#aab4c5;
}
.sum-row strong{
    font-size:16px;
}
.alert-box{
    padding:14px;
    border-radius:12px;
    font-weight:700;
}
.alert-box.success{background:rgba(34,197,94,.15);color:#4ade80;border:1px solid rgba(34,197,94,.35)}
.alert-box.warning{background:rgba(245,158,11,.15);color:#fbbf24;border:1px solid rgba(245,158,11,.35)}
.alert-box.danger{background:rgba(239,68,68,.15);color:#f87171;border:1px solid rgba(239,68,68,.35)}
.hidden{display:none}

.result-select option[value="win"]{background:#14532d}
.result-select option[value="loss"]{background:#7f1d1d}
.result-select option[value="skip"]{background:#374151}

@media (max-width: 980px){
    .grid{
        grid-template-columns:1fr;
    }
}