
:root{
  --bg:#0b0f14;
  --panel:#141b22;
  --panel2:#11171d;
  --card:#1a222b;
  --card2:#171f27;
  --text:#e6eef7;
  --muted:#9aa8b6;
  --stroke:rgba(255,255,255,.06);
  --shadow:0 20px 70px rgba(0,0,0,.45);
  --radius:18px;
  --accent:#f5b400;
  --good:#19c37d;
  --bad:#ff4d4f;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 65% 30%, rgba(132,0,255,.22), rgba(0,0,0,0) 60%),
    radial-gradient(900px 500px at 35% 70%, rgba(0,208,255,.10), rgba(0,0,0,0) 60%),
    var(--bg);
}

a{color:inherit; text-decoration:none}
button,input,select{font:inherit}
.container{
  display:flex;
  min-height:100vh;
}

/* Sidebar */
.sidebar{
  width:280px;
  background:linear-gradient(180deg, rgba(20,27,34,.92), rgba(16,22,28,.92));
  border-right:1px solid var(--stroke);
  position:sticky;
  top:0;
  height:100vh;
  padding:18px 16px;
  overflow:auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 6px 18px 6px;
}
.brand img{width:28px;height:28px}
.brand .name{font-weight:700; letter-spacing:.2px}
.userbox{
  display:flex; gap:12px; align-items:center;
  padding:14px 10px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--stroke);
}
.avatar{
  width:42px;height:42px;border-radius:50%;
  background:rgba(255,255,255,.06);
  display:grid;place-items:center;
  border:1px solid var(--stroke);
}
.userbox .meta{line-height:1.15}
.userbox .meta .u{font-weight:700}
.userbox .meta .e{color:var(--muted); font-size:12px; margin-top:3px}

.nav-title{
  color:rgba(154,168,182,.75);
  font-size:11px;
  letter-spacing:.12em;
  margin:18px 10px 8px;
}
.nav a{
  display:flex; align-items:center; gap:12px;
  padding:11px 12px;
  border-radius:14px;
  color:rgba(230,238,247,.84);
  border:1px solid transparent;
}
.nav a:hover{background:rgba(255,255,255,.03); border-color:var(--stroke)}
.nav a.active{
  background:rgba(245,180,0,.10);
  border-color:rgba(245,180,0,.22);
  color:var(--accent);
}
.nav .icon{
  width:18px;height:18px; opacity:.95; display:inline-block;
}
.sidebar .cta{
  margin-top:18px;
  border-top:1px solid var(--stroke);
  padding-top:16px;
}
.cta .title{color:var(--accent); font-weight:700; margin:0 10px 6px}
.cta .desc{color:var(--muted); font-size:12px; margin:0 10px 10px; line-height:1.4}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn-primary{
  background:linear-gradient(180deg, rgba(245,180,0,.95), rgba(210,145,0,.95));
  color:#0b0f14;
  border-color:rgba(245,180,0,.35);
}
.btn-ghost{background:rgba(255,255,255,.02)}
.btn-wide{width:100%}

/* Main */
.main{
  flex:1;
  padding:16px 18px 30px;
}
.topbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  padding:6px 6px 14px;
  color:rgba(230,238,247,.86);
}
.pill{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--stroke);
}
.badge{
  background:var(--bad);
  color:white;
  font-size:12px;
  border-radius:999px;
  padding:3px 8px;
  margin-left:6px;
}

.shell{
  max-width:1200px;
  margin:0 auto;
}

.grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:18px;
  align-items:start;
}
.card{
  background:linear-gradient(180deg, rgba(26,34,43,.92), rgba(20,27,34,.92));
  border:1px solid var(--stroke);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.card .hd{
  padding:18px 18px 0;
}
.card .bd{padding:18px}
.h1{font-size:22px; margin:6px 0 0; font-weight:800}
.muted{color:var(--muted)}
.small{font-size:12px}
.row{display:flex; gap:14px; align-items:center; justify-content:space-between}
.kpi-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.kpi{
  padding:16px;
  border-radius:18px;
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
}
.kpi .label{color:var(--muted); font-size:12px}
.kpi .value{font-size:22px; font-weight:800; margin-top:6px}
.kpi .value.good{color:var(--good)}
.kpi .value.bad{color:var(--bad)}
.balance{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  margin-top:14px;
}
.dots{letter-spacing:4px; font-weight:700; opacity:.9}

.quick{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.quick .qa{
  padding:16px 12px;
  border-radius:18px;
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-align:center;
}
.qa .qicon{
  width:34px;height:34px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(245,180,0,.12);
  border:1px solid rgba(245,180,0,.22);
  color:var(--accent);
}
.qa span{font-size:12px; color:rgba(230,238,247,.88); font-weight:600}

.input{
  width:100%;
  background:rgba(0,0,0,.20);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 12px;
  color:var(--text);
}
.copyline{display:flex; gap:10px; align-items:center}
.copyline .input{flex:1}
.section{margin-top:18px}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
  font-size:13px;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-weight:600;
  padding:0 12px;
  font-size:12px;
}
.table td{
  padding:10px 12px;
}
.tr{
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
}
.tr td:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}
.tr td:last-child{border-top-right-radius:14px;border-bottom-right-radius:14px}
.tag{
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
}
.tag.credit{border-color:rgba(25,195,125,.25); color:var(--good); background:rgba(25,195,125,.08)}
.tag.debit{border-color:rgba(255,77,79,.22); color:var(--bad); background:rgba(255,77,79,.08)}

.bigcard{
  padding:22px;
}
.hero{
  background:rgba(0,0,0,.20);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:22px;
}
.hero h2{margin:0 0 8px; font-size:28px}
.hero p{margin:0; color:var(--muted); line-height:1.5}
.sub-actions{display:flex; gap:12px; margin-top:16px}

.pairs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.pair{
  padding:16px;
  border-radius:18px;
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
}
.pair .top{display:flex; align-items:center; justify-content:space-between}
.pair .name{font-weight:800}
.pair .sym{color:var(--muted); font-size:12px}
.pair .stat{margin-top:10px; color:var(--muted); font-size:12px}
.pair .chg.good{color:var(--good)}
.pair .chg.bad{color:var(--bad)}

.tradingview{
  height:520px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background:black;
}
.tradingview iframe{width:100%; height:100%; border:0}

.center-panel{
  max-width:920px;
  margin:0 auto;
}

.select-row{
  display:flex;
  gap:12px;
  margin-top:14px;
}
.select-row select{flex:1}

.method-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.method{
  padding:16px;
  border-radius:18px;
  background:rgba(0,0,0,.18);
  border:1px solid var(--stroke);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.method.active{border-color:rgba(245,180,0,.35); background:rgba(245,180,0,.08)}
.method .left{display:flex; gap:12px; align-items:center}
.coin{
  width:36px;height:36px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
}

.notice{
  display:flex; gap:14px; align-items:flex-start;
  padding:16px; border-radius:18px;
  background:rgba(0,0,0,.18); border:1px solid var(--stroke);
  color:var(--muted);
}
.notice strong{color:var(--text)}
hr.sep{border:0; border-top:1px solid var(--stroke); margin:18px 0}

/* Login */
.auth-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
.auth-card{
  width:min(520px, 100%);
  background:linear-gradient(180deg, rgba(26,34,43,.92), rgba(20,27,34,.92));
  border:1px solid var(--stroke);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:24px;
}
.auth-card .brand{padding:0; margin-bottom:10px}
.auth-card h1{margin:8px 0 0; font-size:22px}
.auth-card p{margin:8px 0 18px; color:var(--muted)}

/* Responsive */
@media (max-width: 1100px){
  .grid{grid-template-columns:1fr}
  .sidebar{position:fixed; left:0; top:0; transform:translateX(-100%); transition:.25s ease; z-index:50}
  .sidebar.open{transform:translateX(0)}
  .main{padding:16px 14px 30px}
  .topbar{justify-content:space-between}
  .mobile-toggle{display:inline-flex}
}
@media (min-width: 1101px){
  .mobile-toggle{display:none}
}
