*{box-sizing:border-box;margin:0;padding:0;font-family:Inter,Arial,sans-serif}
:root{
  --bg:#050816;
  --card:#0d1728;
  --card2:#111f36;
  --line:#1d3354;
  --text:#f1f7ff;
  --muted:#91a4bf;
  --green:#38ef7d;
  --cyan:#22d3ee;
  --blue:#3b82f6;
  --red:#fb7185;
  --orange:#fb923c;
}
body{
  background:
    radial-gradient(circle at top left,rgba(34,211,238,.18),transparent 30%),
    radial-gradient(circle at top right,rgba(56,239,125,.12),transparent 28%),
    var(--bg);
  color:var(--text);
  min-height:100vh;
  padding-bottom:92px;
}
.app{max-width:1180px;margin:auto;padding:18px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.topbar img{width:170px;max-width:55vw}
.topicons{display:flex;gap:10px}
.topicons button{
  width:44px;height:44px;border-radius:50%;border:1px solid var(--line);
  background:rgba(13,23,40,.9);color:white
}
main{display:block}
.view{display:none}.view.active{display:block}
.hero{
  background:
    radial-gradient(circle at top right,rgba(34,211,238,.22),transparent 35%),
    linear-gradient(180deg,#12233d,#081426);
  border:1px solid var(--line);
  border-radius:28px;
  padding:22px;
  box-shadow:0 25px 60px rgba(0,0,0,.35);
  margin-bottom:16px;
}
.label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.balance{font-size:42px;font-weight:900;margin:14px 0 8px}
.profit{color:var(--green);font-weight:800}
.heroBtns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
button{border:0;border-radius:16px;padding:14px;font-weight:900;color:white}
.greenBtn{background:linear-gradient(135deg,#16a34a,#38ef7d)}
.blueBtn{background:linear-gradient(135deg,#2563eb,#22d3ee)}
.redBtn{background:linear-gradient(135deg,#dc2626,#fb7185)}
.statusGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-bottom:16px;
}
.miniCard{
  background:rgba(13,23,40,.92);
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
}
.miniCard i{color:var(--cyan);font-size:20px;margin-bottom:10px}
.miniCard span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}
.miniCard b{font-size:20px}
.panel{
  background:rgba(13,23,40,.94);
  border:1px solid var(--line);
  border-radius:24px;
  padding:18px;
  margin-bottom:16px;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}
.panelHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px}
.panelHead h2,.pageTitle{font-size:20px;font-weight:900}
.panelHead span{color:var(--green);font-size:13px}
.chart{
  height:230px;
  background:#07111f;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  position:relative;
}
.gridlines{
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(135deg,transparent 30%,rgba(56,239,125,.35) 31%,transparent 33%),
    linear-gradient(30deg,transparent 48%,rgba(34,211,238,.35) 49%,transparent 51%);
  background-size:42px 42px,42px 42px,100% 100%,100% 100%;
}
.exchangeStrip{display:flex;gap:10px;overflow:auto;margin:0 0 16px}
.exchangePill{
  min-width:max-content;
  background:rgba(13,23,40,.94);
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.dot{width:9px;height:9px;border-radius:50%;background:var(--green)}
.oppList{display:grid;gap:14px}
.opp{
  background:linear-gradient(180deg,#111f36,#081426);
  border:1px solid var(--line);
  border-radius:24px;
  padding:16px;
}
.oppTop{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}
.oppPair{font-size:22px;font-weight:900}
.badge{border-radius:999px;padding:8px 12px;font-size:11px;font-weight:900;white-space:nowrap}
.ok{background:#06391f;color:var(--green)}
.bad{background:#3b0a12;color:var(--red)}
.routeGrid{display:grid;grid-template-columns:1fr 44px 1fr;gap:10px;align-items:center}
.routeBox{
  background:#0d1728;
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
}
.routeBox small{display:flex;gap:7px;color:var(--muted);margin-bottom:7px}
.arrowCircle{
  width:42px;height:42px;border-radius:50%;
  background:#12233d;display:grid;place-items:center;color:var(--cyan)
}
.metricGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.metric{
  background:#0d1728;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.metric small{display:flex;gap:7px;color:var(--muted);margin-bottom:6px}
.green{color:var(--green)}.red{color:var(--red)}.blue{color:var(--blue)}
.pageTitle{margin:8px 0 16px;display:flex;gap:10px;align-items:center}
.terminalBox{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:14px}
.terminalBox div,.tools div{
  background:#0d1728;border:1px solid var(--line);border-radius:18px;padding:14px
}
.terminalBox span{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}
.tools{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.bottomNav{
  position:fixed;left:0;right:0;bottom:0;height:82px;
  background:rgba(5,8,22,.98);
  border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(6,1fr);
  z-index:999;
}
.bottomNav button{
  background:transparent;
  color:var(--muted);
  border-radius:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;font-size:11px;padding:7px 0
}
.bottomNav button i{font-size:18px}
.bottomNav button.active{color:var(--green);background:#07111f}
@media(max-width:820px){
  .app{padding:14px}
  .statusGrid{grid-template-columns:repeat(2,1fr)}
  .balance{font-size:36px}
  .metricGrid{grid-template-columns:1fr}
  .routeGrid{grid-template-columns:1fr}
  .arrowCircle{transform:rotate(90deg);margin:auto}
  .terminalBox{grid-template-columns:1fr}
  .tools{grid-template-columns:1fr 1fr}
  .chart{height:210px}
}
@media(min-width:821px){
  body{padding-bottom:0}
  .bottomNav{max-width:900px;left:50%;transform:translateX(-50%);border-radius:24px 24px 0 0}
  .oppList{grid-template-columns:repeat(2,1fr)}
}

.topbar{
  align-items:center;
  gap:14px;
}

.topbar img{
  width:260px;
  height:auto;
  object-fit:contain;
  display:block;
}

@media(max-width:820px){
  .topbar img{
    width:230px;
    max-width:62vw;
  }

  .topicons button{
    width:42px;
    height:42px;
  }
}

/* LUPAAH exact logo header fit */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 14px 10px;
}

.topbar img{
  width:315px;
  max-width:58vw;
  height:auto;
  object-fit:contain;
  display:block;
}

.topicons{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.topicons button{
  width:58px;
  height:58px;
  border-radius:50%;
}

@media(max-width:820px){
  .topbar{
    padding:18px 12px 12px;
  }

  .topbar img{
    width:260px;
    max-width:58vw;
  }

  .topicons button{
    width:50px;
    height:50px;
  }
}

@media(max-width:420px){
  .topbar img{
    width:230px;
    max-width:56vw;
  }

  .topicons{
    gap:8px;
  }

  .topicons button{
    width:46px;
    height:46px;
  }
}

.topbar img{
  width:230px !important;
  max-width:58vw !important;
  height:auto !important;
  object-fit:contain !important;
}

@media(max-width:420px){
  .topbar img{
    width:210px !important;
    max-width:56vw !important;
  }
}

/* Proper responsive LUPAAH brand header */
.brandMark{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.logoIcon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:900;
  color:white;
  background:linear-gradient(135deg,#22c55e,#06b6d4);
  box-shadow:0 0 24px rgba(34,197,94,.25);
  flex-shrink:0;
}

.logoText{
  font-size:29px;
  font-weight:900;
  color:#fff;
  letter-spacing:.5px;
  line-height:1;
}

.logoTag{
  margin-top:5px;
  font-size:12px;
  color:#94a3b8;
  white-space:nowrap;
}

@media(max-width:420px){
  .topbar{
    gap:10px;
  }

  .logoIcon{
    width:46px;
    height:46px;
    font-size:24px;
    border-radius:14px;
  }

  .logoText{
    font-size:24px;
  }

  .logoTag{
    font-size:10px;
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .topicons{
    gap:7px;
  }

  .topicons button{
    width:40px!important;
    height:40px!important;
  }
}

@media(min-width:821px){
  .logoIcon{
    width:58px;
    height:58px;
  }

  .logoText{
    font-size:34px;
  }

  .logoTag{
    font-size:14px;
  }
}

/* ===== LUPAAH LOGO FIT FIX ===== */

.topbar{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:12px !important;
    padding:16px 18px !important;
}

.topbar img{
    width:280px !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
    flex-shrink:1 !important;
    max-width:none !important;
}

.topicons{
    display:flex !important;
    gap:10px !important;
    flex-shrink:0 !important;
}

.topicons button{
    width:46px !important;
    height:46px !important;
    border-radius:50% !important;
}

@media(max-width:768px){

    .topbar img{
        width:230px !important;
    }

    .topicons button{
        width:42px !important;
        height:42px !important;
    }
}

@media(max-width:430px){

    .topbar{
        padding:14px 12px !important;
    }

    .topbar img{
        width:200px !important;
    }

    .topicons button{
        width:38px !important;
        height:38px !important;
    }
}


/* Exact LUPAAH logo fit */
.brand-logo,
.topbar img,
.logo img{
    width:320px !important;
    max-width:72vw !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
}

.topbar{
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    padding:22px 20px !important;
}

@media(max-width:768px){
    .brand-logo,
    .topbar img,
    .logo img{
        width:260px !important;
        max-width:68vw !important;
    }
}


/* Exact LUPAAH logo fit */
.brand-logo,
.topbar img,
.logo img{
    width:320px !important;
    max-width:72vw !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
}

.topbar{
    display:flex !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    padding:22px 20px !important;
}

@media(max-width:768px){
    .brand-logo,
    .topbar img,
    .logo img{
        width:260px !important;
        max-width:68vw !important;
    }
}


.logo img,
.topbar img{
    width:280px !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
}

@media(max-width:768px){

    .logo img,
    .topbar img{
        width:250px !important;
    }

}


.logo img,
.topbar img{
    width:280px !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
}

@media(max-width:768px){

    .logo img,
    .topbar img{
        width:250px !important;
    }

}


/* FINAL LOGO FORCE FIX */
.topbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:18px 14px 14px !important;
}

.lupaahMainLogo{
  width:260px !important;
  max-width:62vw !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
}

.topicons{
  display:flex !important;
  gap:10px !important;
  flex-shrink:0 !important;
}

.topicons button{
  width:48px !important;
  height:48px !important;
  border-radius:50% !important;
}

@media(max-width:430px){
  .lupaahMainLogo{
    width:230px !important;
    max-width:58vw !important;
  }

  .topicons button{
    width:42px !important;
    height:42px !important;
  }
}

/* FINAL LOGO FORCE FIX */
.topbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:18px 14px 14px !important;
}

.lupaahMainLogo{
  width:260px !important;
  max-width:62vw !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
}

.topicons{
  display:flex !important;
  gap:10px !important;
  flex-shrink:0 !important;
}

.topicons button{
  width:48px !important;
  height:48px !important;
  border-radius:50% !important;
}

@media(max-width:430px){
  .lupaahMainLogo{
    width:230px !important;
    max-width:58vw !important;
  }

  .topicons button{
    width:42px !important;
    height:42px !important;
  }
}

/* Blend dark-logo image into the app header */
.topbar{
  background:#020712 !important;
  border-radius:0 !important;
  padding:18px 14px 16px !important;
}

.lupaahMainLogo{
  width:260px !important;
  max-width:62vw !important;
  height:auto !important;
  object-fit:contain !important;
  mix-blend-mode:screen;
}

@media(max-width:430px){
  .lupaahMainLogo{
    width:230px !important;
    max-width:58vw !important;
  }
}


/* Blend dark-logo image into the app header */
.topbar{
  background:#020712 !important;
  border-radius:0 !important;
  padding:18px 14px 16px !important;
}

.lupaahMainLogo{
  width:260px !important;
  max-width:62vw !important;
  height:auto !important;
  object-fit:contain !important;
  mix-blend-mode:screen;
}

@media(max-width:430px){
  .lupaahMainLogo{
    width:230px !important;
    max-width:58vw !important;
  }
}


/* Restored clean SVG logo */
.topbar{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  padding:18px 14px 14px !important;
}

.lupaahMainLogo{
  width:250px !important;
  max-width:62vw !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
}

.topicons{
  display:flex !important;
  gap:10px !important;
  flex-shrink:0 !important;
}

.topicons button{
  width:46px !important;
  height:46px !important;
  border-radius:50% !important;
}

@media(max-width:430px){
  .lupaahMainLogo{
    width:225px !important;
    max-width:58vw !important;
  }

  .topicons button{
    width:42px !important;
    height:42px !important;
  }
}

.lupaahMainLogo,
.topbar img{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  mix-blend-mode:normal !important;
}

/* REMOVE LOGO/HEADER BLACK BACKGROUND */
.topbar{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}

.lupaahMainLogo,
.topbar img{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  mix-blend-mode:normal !important;
}


/* ===== SCALE LOGO + BALANCE UI SIZE ===== */

.app{
  padding-top:24px !important;
}

.topbar{
  padding:22px 24px 24px !important;
  margin-bottom:22px !important;
}

.lupaahMainLogo{
  width:330px !important;
  max-width:68vw !important;
}

.topicons button{
  width:54px !important;
  height:54px !important;
}

@media(max-width:430px){
  .app{
    padding:18px 14px !important;
  }

  .topbar{
    padding:24px 10px 22px !important;
    margin-bottom:22px !important;
  }

  .lupaahMainLogo{
    width:285px !important;
    max-width:66vw !important;
  }

  .topicons button{
    width:46px !important;
    height:46px !important;
  }

  .hero{
    padding:22px !important;
    border-radius:28px !important;
  }

  .balance{
    font-size:40px !important;
  }

  .miniCard{
    min-height:145px !important;
  }
}

/* HARD FINAL HEADER SCALE FIX */
header.topbar{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  align-items:center !important;
  gap:8px !important;
  padding:22px 10px 22px !important;
  margin-bottom:24px !important;
}

header.topbar img.lupaahMainLogo,
header.topbar img{
  width:300px !important;
  min-width:300px !important;
  max-width:300px !important;
  height:auto !important;
  object-fit:contain !important;
}

header.topbar .topicons{
  display:flex !important;
  gap:8px !important;
}

header.topbar .topicons button{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:50% !important;
}

@media(max-width:430px){
  header.topbar img.lupaahMainLogo,
  header.topbar img{
    width:270px !important;
    min-width:270px !important;
    max-width:270px !important;
  }

  header.topbar .topicons button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
  }
}

@media(max-width:390px){
  header.topbar img.lupaahMainLogo,
  header.topbar img{
    width:250px !important;
    min-width:250px !important;
    max-width:250px !important;
  }
}

/* ===== FINAL HEADER BALANCE FIX ===== */

.topbar{
    padding:10px 16px 8px !important;
    margin-bottom:4px !important;
}

.lupaahMainLogo,
.topbar img{
    width:340px !important;
    max-width:none !important;
    height:auto !important;
    display:block !important;
}

.topicons{
    gap:8px !important;
}

.topicons button{
    width:44px !important;
    height:44px !important;
}

.hero,
.capital-card,
.balance-card{
    margin-top:0 !important;
}

@media(max-width:430px){

    .lupaahMainLogo,
    .topbar img{
        width:320px !important;
    }

    .topbar{
        padding:8px 12px 4px !important;
        margin-bottom:0 !important;
    }

    .topicons button{
        width:40px !important;
        height:40px !important;
    }
}


/* ===== FINAL REAL HEADER LOGO ===== */

.topbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:18px 14px 18px !important;
  margin-bottom:14px !important;
}

.brandHead{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  flex:1 !important;
}

.brandA{
  width:76px !important;
  height:76px !important;
  position:relative !important;
  flex-shrink:0 !important;
}

.brandA:before{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  width:76px !important;
  height:76px !important;
  background:linear-gradient(135deg,#38ef7d,#06b6d4) !important;
  clip-path:polygon(50% 0%, 100% 100%, 72% 100%, 50% 42%, 28% 100%, 0% 100%) !important;
}

.brandA span{
  position:absolute !important;
  left:24px !important;
  top:42px !important;
  width:28px !important;
  height:34px !important;
  background:#04111f !important;
  clip-path:polygon(50% 0%, 100% 100%, 0% 100%) !important;
}

.brandName{
  font-size:40px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:white !important;
  letter-spacing:.5px !important;
}

.brandSub{
  font-size:13px !important;
  margin-top:5px !important;
  color:#94a3b8 !important;
  white-space:nowrap !important;
}

.brandSub b{
  color:#38ef7d !important;
}

.topicons{
  display:flex !important;
  gap:10px !important;
  flex-shrink:0 !important;
}

.topicons button{
  width:48px !important;
  height:48px !important;
  border-radius:50% !important;
}

@media(max-width:430px){
  .topbar{
    padding:18px 12px 16px !important;
  }

  .brandHead{
    gap:12px !important;
  }

  .brandA{
    width:64px !important;
    height:64px !important;
  }

  .brandA:before{
    width:64px !important;
    height:64px !important;
  }

  .brandA span{
    left:20px !important;
    top:36px !important;
    width:24px !important;
    height:28px !important;
  }

  .brandName{
    font-size:34px !important;
  }

  .brandSub{
    font-size:11px !important;
    max-width:220px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .topicons button{
    width:42px !important;
    height:42px !important;
  }
}

/* BIG FINAL LUPAAH HEADER */
.brandA{
  width:86px !important;
  height:86px !important;
}

.brandA:before{
  width:86px !important;
  height:86px !important;
}

.brandA span{
  left:27px !important;
  top:48px !important;
  width:32px !important;
  height:38px !important;
}

.brandName{
  font-size:46px !important;
}

.brandSub{
  font-size:14px !important;
}

@media(max-width:430px){
  .brandA{
    width:72px !important;
    height:72px !important;
  }

  .brandA:before{
    width:72px !important;
    height:72px !important;
  }

  .brandA span{
    left:23px !important;
    top:40px !important;
    width:27px !important;
    height:32px !important;
  }

  .brandName{
    font-size:38px !important;
  }

  .brandSub{
    font-size:12px !important;
  }
}

/* ===== PROFESSIONAL ARBITRAGE OPPORTUNITY CARDS ===== */

.arbCard{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:26px;
  padding:18px;
  position:relative;
  overflow:hidden;
}

.arbCard:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#38ef7d,#22d3ee,#3b82f6);
}

.arbTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}

.arbPair{
  font-size:24px;
  font-weight:900;
  color:#fff;
}

.arbSub{
  color:#91a4bf;
  font-size:12px;
  margin-top:4px;
}

.arbRoute{
  display:grid;
  grid-template-columns:1fr 48px 1fr;
  gap:10px;
  align-items:center;
}

.arbBox{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:18px;
  padding:14px;
}

.arbLabel{
  color:#91a4bf;
  font-size:11px;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
}

.arbExchange{
  font-size:17px;
  font-weight:900;
  color:#fff;
}

.arbArrow{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#12233d;
  color:#22d3ee;
}

.arbMetrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}

.arbMetric{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:12px;
}

.arbMetric span{
  color:#91a4bf;
  font-size:11px;
  display:flex;
  gap:6px;
  margin-bottom:6px;
}

.arbMetric b{
  font-size:16px;
}

.arbFooter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-top:1px solid #1d3354;
  margin-top:14px;
  padding-top:14px;
}

.arbReason{
  color:#91a4bf;
  font-size:12px;
  max-width:70%;
}

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

  .arbArrow{
    transform:rotate(90deg);
    margin:auto;
  }

  .arbMetrics{
    grid-template-columns:1fr;
  }

  .arbReason{
    max-width:60%;
  }
}

/* ===== PROFESSIONAL ARBITRAGE OPPORTUNITY CARDS ===== */

.arbCard{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:26px;
  padding:18px;
  position:relative;
  overflow:hidden;
}

.arbCard:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,#38ef7d,#22d3ee,#3b82f6);
}

.arbTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}

.arbPair{
  font-size:24px;
  font-weight:900;
  color:#fff;
}

.arbSub{
  color:#91a4bf;
  font-size:12px;
  margin-top:4px;
}

.arbRoute{
  display:grid;
  grid-template-columns:1fr 48px 1fr;
  gap:10px;
  align-items:center;
}

.arbBox{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:18px;
  padding:14px;
}

.arbLabel{
  color:#91a4bf;
  font-size:11px;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
}

.arbExchange{
  font-size:17px;
  font-weight:900;
  color:#fff;
}

.arbArrow{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#12233d;
  color:#22d3ee;
}

.arbMetrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}

.arbMetric{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:12px;
}

.arbMetric span{
  color:#91a4bf;
  font-size:11px;
  display:flex;
  gap:6px;
  margin-bottom:6px;
}

.arbMetric b{
  font-size:16px;
}

.arbFooter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-top:1px solid #1d3354;
  margin-top:14px;
  padding-top:14px;
}

.arbReason{
  color:#91a4bf;
  font-size:12px;
  max-width:70%;
}

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

  .arbArrow{
    transform:rotate(90deg);
    margin:auto;
  }

  .arbMetrics{
    grid-template-columns:1fr;
  }

  .arbReason{
    max-width:60%;
  }
}

/* ===== EXCHANGE HEALTH BAR ===== */

.exchangeHealthBar{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 2px 16px;
  margin-bottom:12px;
}

.exchangeHealthItem{
  min-width:max-content;
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:999px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#eef6ff;
  font-weight:800;
  font-size:13px;
}

.exchangeHealthDot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#38ef7d;
  box-shadow:0 0 12px rgba(56,239,125,.8);
}

.exchangeHealthDot.bad{
  background:#fb7185;
  box-shadow:0 0 12px rgba(251,113,133,.8);
}

/* ===== SCANNER CONTROL CENTER ===== */

.scannerControl{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:26px;
  padding:18px;
  margin-bottom:16px;
}

.scannerControl h2{
  margin-bottom:14px;
}

.scannerFilters{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.filterBox{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:13px;
}

.filterBox span{
  color:#91a4bf;
  font-size:12px;
  display:flex;
  gap:7px;
  margin-bottom:8px;
}

.filterBox b{
  color:#fff;
  font-size:16px;
}

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

/* ===== TRADING TERMINAL UPGRADE ===== */

.executionPanel{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:26px;
  padding:18px;
  margin-bottom:16px;
}

.executionGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:14px;
}

.executionItem{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:14px;
}

.executionItem span{
  color:#91a4bf;
  font-size:12px;
  display:flex;
  gap:7px;
  margin-bottom:8px;
}

.executionItem b{
  font-size:18px;
  color:#fff;
}

.tradeQueue{
  display:grid;
  gap:10px;
}

.queueItem{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

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

/* ===== CAPITAL CENTER UPGRADE ===== */

.capitalHero{
  background:
    radial-gradient(circle at top right,rgba(56,239,125,.18),transparent 35%),
    linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:28px;
  padding:22px;
  margin-bottom:16px;
}

.capitalHero .bigMoney{
  font-size:42px;
  font-weight:900;
  margin:14px 0 8px;
}

.capitalGraph{
  height:120px;
  margin-top:18px;
  border-radius:18px;
  background:#07111f;
  border:1px solid #1d3354;
  position:relative;
  overflow:hidden;
}

.capitalGraph:before{
  content:"";
  position:absolute;
  inset:20px;
  background:
    linear-gradient(135deg,transparent 20%,rgba(56,239,125,.45) 22%,transparent 24%),
    linear-gradient(35deg,transparent 45%,rgba(34,211,238,.35) 47%,transparent 49%);
}

.capitalStats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.capitalBox{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:18px;
  padding:16px;
}

.capitalBox span{
  display:flex;
  gap:7px;
  color:#91a4bf;
  font-size:12px;
  margin-bottom:8px;
}

.capitalBox b{
  font-size:22px;
}

/* ===== CAPITAL CENTER UPGRADE ===== */

.capitalHero{
  background:
    radial-gradient(circle at top right,rgba(56,239,125,.18),transparent 35%),
    linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:28px;
  padding:22px;
  margin-bottom:16px;
}

.capitalHero .bigMoney{
  font-size:42px;
  font-weight:900;
  margin:14px 0 8px;
}

.capitalGraph{
  height:120px;
  margin-top:18px;
  border-radius:18px;
  background:#07111f;
  border:1px solid #1d3354;
  position:relative;
  overflow:hidden;
}

.capitalGraph:before{
  content:"";
  position:absolute;
  inset:20px;
  background:
    linear-gradient(135deg,transparent 20%,rgba(56,239,125,.45) 22%,transparent 24%),
    linear-gradient(35deg,transparent 45%,rgba(34,211,238,.35) 47%,transparent 49%);
}

.capitalStats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.capitalBox{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:18px;
  padding:16px;
}

.capitalBox span{
  display:flex;
  gap:7px;
  color:#91a4bf;
  font-size:12px;
  margin-bottom:8px;
}

.capitalBox b{
  font-size:22px;
}

/* ===== JOURNAL & ANALYTICS ===== */

.analyticsGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-bottom:16px;
}

.analyticsCard{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:18px;
  padding:16px;
}

.analyticsCard span{
  color:#91a4bf;
  font-size:12px;
  display:block;
  margin-bottom:8px;
}

.analyticsCard b{
  color:#fff;
  font-size:24px;
  font-weight:900;
}

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

/* ===== MORE / RISK / SETTINGS ===== */

.toolGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.toolCard{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:20px;
  padding:18px;
}

.toolCard i{
  font-size:24px;
  color:#22d3ee;
  margin-bottom:12px;
}

.toolCard b{
  display:block;
  font-size:17px;
  margin-bottom:6px;
}

.toolCard span{
  color:#91a4bf;
  font-size:12px;
}

.riskStatus{
  margin-top:16px;
  display:grid;
  gap:10px;
}

.riskRow{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

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

/* ===== TRADE MODE CENTER ===== */

.tradeModeGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-bottom:16px;
}

.tradeModeCard{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:24px;
  padding:18px;
}

.tradeModeCard h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.tradeStep{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:14px;
  margin-top:10px;
}

.tradeStep b{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  margin-bottom:6px;
}

.tradeStep span{
  color:#91a4bf;
  font-size:13px;
}

.modeBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  margin-bottom:10px;
}

.manualBadge{background:#172554;color:#60a5fa}
.autoBadge{background:#06391f;color:#38ef7d}

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

/* ===== REAL TRADE CONTROL CENTER ===== */

.controlGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.controlPanel{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:26px;
  padding:18px;
}

.controlPanel h2{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

.controlInput{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
}

.controlInput span{
  color:#91a4bf;
  font-size:12px;
  display:flex;
  gap:7px;
  margin-bottom:8px;
}

.controlInput input,
.controlInput select{
  width:100%;
  background:#07111f;
  border:1px solid #1d3354;
  border-radius:12px;
  color:white;
  padding:12px;
  font-size:15px;
}

.controlButtons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.loopStatus{
  background:#0d1728;
  border:1px solid #1d3354;
  border-radius:18px;
  padding:14px;
  margin-top:14px;
}

.loopRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  border-bottom:1px solid #1d3354;
}

.loopRow:last-child{
  border-bottom:0;
}

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

/* ===== CLEAN TRADE PAGE FIX ===== */

.tradeGridClean{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:14px !important;
}

.tradePanelClean{
  background:linear-gradient(180deg,#101d33,#071222) !important;
  border:1px solid #1b3152 !important;
  border-radius:26px !important;
  padding:18px !important;
  box-shadow:0 18px 45px rgba(0,0,0,.25) !important;
}

.tradePanelClean h2{
  font-size:22px !important;
  margin-bottom:16px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.tradePanelClean label{
  color:#91a4bf !important;
  font-size:13px !important;
  margin:12px 0 7px !important;
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
}

.tradePanelClean input,
.tradePanelClean select{
  width:100% !important;
  background:#07111f !important;
  color:#fff !important;
  border:1px solid #1d3354 !important;
  border-radius:14px !important;
  padding:13px !important;
  font-size:15px !important;
  outline:none !important;
}

.tradeBtnsClean{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin-top:16px !important;
}

.tradeStatusClean{
  background:#0d1728 !important;
  border:1px solid #1d3354 !important;
  border-radius:18px !important;
  padding:12px !important;
  margin-top:16px !important;
}

.tradeStatusClean div{
  display:flex !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:10px 0 !important;
  border-bottom:1px solid #1d3354 !important;
}

.tradeStatusClean div:last-child{
  border-bottom:0 !important;
}

.tradeStatusClean span{
  color:#91a4bf !important;
}

.bottomNav{
  grid-template-columns:repeat(7,1fr) !important;
}

@media(max-width:820px){
  .tradeGridClean{
    grid-template-columns:1fr !important;
  }

  .tradeBtnsClean{
    grid-template-columns:1fr !important;
  }

  .bottomNav button{
    font-size:10px !important;
  }

  .bottomNav button i{
    font-size:17px !important;
  }
}

/* ===== CLEAN TRADE PAGE FIX ===== */

.tradeGridClean{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:14px !important;
}

.tradePanelClean{
  background:linear-gradient(180deg,#101d33,#071222) !important;
  border:1px solid #1b3152 !important;
  border-radius:26px !important;
  padding:18px !important;
  box-shadow:0 18px 45px rgba(0,0,0,.25) !important;
}

.tradePanelClean h2{
  font-size:22px !important;
  margin-bottom:16px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

.tradePanelClean label{
  color:#91a4bf !important;
  font-size:13px !important;
  margin:12px 0 7px !important;
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
}

.tradePanelClean input,
.tradePanelClean select{
  width:100% !important;
  background:#07111f !important;
  color:#fff !important;
  border:1px solid #1d3354 !important;
  border-radius:14px !important;
  padding:13px !important;
  font-size:15px !important;
  outline:none !important;
}

.tradeBtnsClean{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  margin-top:16px !important;
}

.tradeStatusClean{
  background:#0d1728 !important;
  border:1px solid #1d3354 !important;
  border-radius:18px !important;
  padding:12px !important;
  margin-top:16px !important;
}

.tradeStatusClean div{
  display:flex !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:10px 0 !important;
  border-bottom:1px solid #1d3354 !important;
}

.tradeStatusClean div:last-child{
  border-bottom:0 !important;
}

.tradeStatusClean span{
  color:#91a4bf !important;
}

.bottomNav{
  grid-template-columns:repeat(7,1fr) !important;
}

@media(max-width:820px){
  .tradeGridClean{
    grid-template-columns:1fr !important;
  }

  .tradeBtnsClean{
    grid-template-columns:1fr !important;
  }

  .bottomNav button{
    font-size:10px !important;
  }

  .bottomNav button i{
    font-size:17px !important;
  }
}

.autoControlBtns{
  grid-template-columns:1fr 1fr 1fr !important;
}

@media(max-width:430px){
  .autoControlBtns{
    grid-template-columns:1fr !important;
  }
}

.treasuryLiveGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:14px;
}

.treasuryLiveCard{
  background:linear-gradient(180deg,#101d33,#071222);
  border:1px solid #1b3152;
  border-radius:20px;
  padding:16px;
}

.treasuryLiveCard span{
  color:#91a4bf;
  font-size:12px;
  display:flex;
  gap:7px;
  margin-bottom:8px;
}

.treasuryLiveCard b{
  color:#fff;
  font-size:24px;
}

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

/* ===== FORCE TREASURY GRID FIX ===== */
#capital .treasuryLiveGrid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
  margin-top:16px !important;
  width:100% !important;
}

#capital .treasuryLiveCard{
  display:block !important;
  background:linear-gradient(180deg,#101d33,#071222) !important;
  border:1px solid #1b3152 !important;
  border-radius:20px !important;
  padding:16px !important;
  min-height:92px !important;
}

#capital .treasuryLiveCard span{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  color:#91a4bf !important;
  font-size:12px !important;
  margin-bottom:8px !important;
}

#capital .treasuryLiveCard b{
  display:block !important;
  color:#fff !important;
  font-size:22px !important;
  font-weight:900 !important;
}

@media(max-width:430px){
  #capital .treasuryLiveGrid{
    grid-template-columns:1fr !important;
  }
}
