
:root{--bg:#07090d;--panel:#10151d;--line:rgba(255,255,255,.14);--green:#00d084;--red:#ff4d5e;--muted:#9aa4b3}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f3f3f3;color:#111}a{text-decoration:none;color:inherit}button,input,select{font:inherit}
.site-header{height:98px;background:#000;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 9%;position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:58px;height:58px;border:3px solid #5d5d5d;border-radius:12px;display:grid;place-items:center;color:#8f8f8f;font-weight:900;font-size:23px;transform:skew(-8deg)}.brand-text{line-height:.9;font-weight:900;font-size:24px;color:#7c7c7c}.brand-text span{display:block}.top-nav{display:flex;gap:32px;font-weight:700}.outline-btn{border:1px solid white;padding:13px 25px;border-radius:3px;color:white;font-weight:800;background:transparent}.header-actions{display:flex;gap:14px}
.hero{min-height:500px;background:linear-gradient(90deg,#f3f3f3,#fff,#e8e8e8);display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:60px 9%;overflow:hidden}.hero h1{font-size:58px;line-height:1.1;margin:10px 0 25px;color:#707070}.hero p{max-width:560px;color:#303642}.hero-login{margin-top:18px;background:#000;color:white;border:0;border-radius:999px;padding:16px 34px;display:inline-flex;gap:14px;align-items:center;font-weight:900;cursor:pointer}.phone-area{height:410px;position:relative}.phone{position:absolute;width:175px;height:340px;border-radius:34px;background:#050505;border:7px solid #222;box-shadow:0 20px 70px rgba(0,0,0,.35);padding:22px;color:white}.phone.one{left:90px;top:55px;transform:rotate(12deg)}.phone.two{left:290px;top:5px;transform:rotate(18deg)}.bar-wrap{height:150px;display:flex;align-items:end;gap:10px;margin-top:40px}.bar{width:28px;background:white;border-radius:4px 4px 0 0}.bar.green{background:#5ce28d}.mini-chart{height:120px;border:1px solid rgba(255,255,255,.12);border-radius:14px;margin-top:40px;overflow:hidden}
.section{padding:70px 9%;background:white}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}.info-card{border:1px solid #e7e7e7;border-radius:18px;padding:24px;background:white;box-shadow:0 12px 32px rgba(0,0,0,.06)}.footer{background:#000;color:#777;padding:30px 9%;display:flex;justify-content:space-between}
.auth-wrap{min-height:calc(100vh - 98px);display:flex;align-items:center;justify-content:center;padding:42px 24px;background:#f3f3f3}.auth{width:100%;max-width:460px;background:white;border-radius:18px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.20)}.auth h1{font-size:34px;margin:0 0 22px}.form{display:grid;gap:12px}.input,.select{width:100%;background:#f7f7f7;border:1px solid #ddd;border-radius:12px;padding:13px;color:#111}.notice{padding:12px;border-radius:12px;border:1px solid rgba(0,208,132,.25);background:rgba(0,208,132,.08);color:#006c43}.error{border-color:rgba(255,77,94,.35);background:rgba(255,77,94,.08);color:#a90018}.hidden{display:none!important}
.app{display:grid;grid-template-columns:270px 1fr;min-height:100vh;background:var(--bg);color:white}.sidebar{position:sticky;top:0;height:100vh;background:#000;border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;gap:18px}.side-logo{display:flex;gap:12px;align-items:center;color:#888}.side-logo .brand-mark{width:42px;height:42px;font-size:18px}.side-nav{display:grid;gap:7px}.side-nav a{padding:12px 14px;border-radius:12px;color:#cfd6e2}.side-nav a:hover,.side-nav a.active{background:rgba(0,208,132,.12);color:white}.main{padding:24px;max-width:1500px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.search{background:#10151d;border:1px solid var(--line);border-radius:13px;padding:12px;color:white;min-width:300px}.user-pill{display:flex;gap:10px;align-items:center;background:#10151d;border:1px solid var(--line);border-radius:999px;padding:8px 12px}.avatar{width:34px;height:34px;border-radius:50%;background:#222;display:grid;place-items:center}.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}.card{background:#10151d;border:1px solid var(--line);border-radius:22px;padding:20px}.metric small,.muted{color:var(--muted)}.metric b{font-size:29px;display:block;margin-top:8px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:middle}.table th{color:var(--muted);font-size:13px}.tag{padding:7px 10px;border-radius:999px;background:#1b2330;color:#d5dce8;font-size:13px}.btn{background:#000;color:white;border:1px solid white;border-radius:5px;padding:12px 18px;cursor:pointer;font-weight:900}.btn.green{background:var(--green);color:#03100a;border:0}.btn.secondary{background:#151b25;border:1px solid var(--line)}.app .input,.app .select{background:#0b0f15;border:1px solid var(--line);color:white}.chart{height:320px;background:#0b0f15;border-radius:16px;overflow:hidden}.up{color:var(--green)}.down{color:var(--red)}#adminUsers button{white-space:nowrap}.side-note{display:none!important}
@media(max-width:1000px){.hero{grid-template-columns:1fr;padding:40px 6%}.phone-area{display:none}.top-nav{display:none}.site-header{padding:0 5%}.cards,.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}.app{grid-template-columns:1fr}.sidebar{display:none}.search{min-width:0;width:100%}}

/* Live PnL trading table */
#tradeFloatingPnl.up{color:var(--green);}
#tradeFloatingPnl.down{color:var(--red);}
#openPositions .up{color:var(--green);}
#openPositions .down{color:var(--red);}

/* Quick Buy/Sell Panel */
.quick-trade-panel{display:grid;grid-template-columns:1fr 44px 90px 44px 1fr;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:12px;background:#0b0f15;}
.qt-side{border:0;color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:900;}
.qt-side span{font-size:13px;opacity:.95}.qt-side b{font-size:18px}.qt-sell{background:#1478ff;}.qt-buy{background:#ff3d47;}
.qt-step{background:#0f151d;color:white;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);cursor:pointer;font-size:22px;}
.qt-volume{background:#0b0f15;color:white;border:0;text-align:center;font-weight:900;}

/* TradingView Markets Page */
.tv-market-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(360px, .9fr);
  gap:16px;
  align-items:stretch;
}
.tv-chart-card,.tv-market-card{
  min-height:620px;
}
.tv-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.tv-advanced-chart{
  height:540px;
  width:100%;
  border-radius:16px;
  overflow:hidden;
  background:#0b0f15;
}
.tv-advanced-chart .tradingview-widget-container__widget{
  height:calc(100% - 32px);
  width:100%;
}
.tv-market-widget-wrap{
  height:540px;
  width:100%;
  overflow:hidden;
  border-radius:16px;
  background:#0b0f15;
}
.tv-market-widget-wrap tv-market-data{
  display:block;
  width:100%;
  height:100%;
}
.tradingview-widget-copyright{
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#8f98a8;
  font-size:12px;
  background:#0b0f15;
}
.tradingview-widget-copyright a{
  color:#8ab4ff;
}
@media(max-width:1100px){
  .tv-market-layout{grid-template-columns:1fr;}
  .tv-chart-card,.tv-market-card{min-height:auto;}
  .tv-advanced-chart,.tv-market-widget-wrap{height:520px;}
}

.tv-chart-card,.tv-market-card{min-height:760px!important;}
.tv-advanced-chart{height:700px!important;}
.tv-market-widget-wrap{height:700px!important;}

/* NEXORA Premium Logo UI */
.premium-brand{
  display:flex;
  align-items:center;
  min-width:220px;
}
.premium-brand img{
  width:220px;
  height:auto;
  display:block;
  filter:drop-shadow(0 0 14px rgba(37,99,235,.22));
}
.premium-side-logo{
  align-items:center;
  padding-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.premium-side-logo img{
  width:48px;
  height:48px;
  border-radius:14px;
  filter:drop-shadow(0 0 12px rgba(14,165,255,.25));
}
.premium-side-logo b{
  font-size:18px;
  letter-spacing:.08em;
  color:#F8FAFC;
}
.auth-logo-premium{
  display:flex;
  justify-content:center;
  margin-bottom:14px;
}
.auth-logo-premium img{
  width:260px;
  max-width:100%;
  filter:drop-shadow(0 0 18px rgba(14,165,255,.22));
}
.site-header .premium-brand{
  gap:0;
}
@media(max-width:1000px){
  .premium-brand img{width:170px;}
}

/* NEXORA Professional Landing */
.home-pro{
  background:#050913;
  color:#f8fafc;
  overflow:hidden;
}
.home-pro .site-header{
  background:rgba(5,9,19,.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.pro-hero{
  position:relative;
  min-height:760px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:50px;
  padding:90px 9% 80px;
  background:
    radial-gradient(circle at 80% 15%, rgba(37,99,235,.28), transparent 32%),
    radial-gradient(circle at 18% 55%, rgba(16,185,129,.12), transparent 30%),
    linear-gradient(180deg,#050913 0%,#07101f 55%,#050913 100%);
}
.pro-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:54px 54px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.65),transparent 82%);
  pointer-events:none;
}
.pro-hero-content,.pro-hero-panel{position:relative;z-index:2}
.pro-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 13px;
  border:1px solid rgba(35,168,255,.32);
  border-radius:999px;
  color:#93c5fd;
  background:rgba(37,99,235,.12);
  font-weight:800;
  letter-spacing:.05em;
  font-size:13px;
}
.pro-hero h1{
  margin:22px 0 18px;
  font-size:72px;
  line-height:.98;
  letter-spacing:-.05em;
  color:#fff;
}
.pro-hero h1 span{
  display:block;
  background:linear-gradient(90deg,#fff,#60a5fa,#0ea5ff);
  -webkit-background-clip:text;
  color:transparent;
}
.pro-hero p{
  max-width:610px;
  color:#b8c3d5;
  font-size:18px;
  line-height:1.7;
}
.pro-cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}
.pro-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:0 24px;
  border-radius:14px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.12);
}
.pro-btn.primary{
  background:linear-gradient(135deg,#2563eb,#0ea5ff);
  color:#fff;
  box-shadow:0 18px 45px rgba(37,99,235,.28);
}
.pro-btn.secondary{
  background:rgba(255,255,255,.05);
  color:#f8fafc;
}
.pro-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:38px;
  max-width:620px;
}
.pro-stat{
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.045);
  border-radius:18px;
  padding:17px;
}
.pro-stat b{
  display:block;
  font-size:24px;
  color:#fff;
}
.pro-stat small{color:#8fa0b8}
.pro-hero-panel{
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(15,23,42,.9),rgba(8,13,24,.88));
  border-radius:30px;
  padding:18px;
  box-shadow:0 30px 100px rgba(0,0,0,.45);
}
.pro-terminal{
  background:#090f1b;
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  overflow:hidden;
}
.pro-terminal-head{
  height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.pro-dots{display:flex;gap:7px}.pro-dots i{width:10px;height:10px;border-radius:50%;background:#334155}.pro-dots i:nth-child(1){background:#ef4444}.pro-dots i:nth-child(2){background:#f59e0b}.pro-dots i:nth-child(3){background:#10b981}
.pro-chart-area{
  height:330px;
  padding:20px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:42px 42px;
}
.pro-chart-line{
  width:100%;
  height:100%;
}
.pro-watch{
  padding:0 18px 18px;
}
.pro-watch-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:14px;
  padding:14px 0;
  border-top:1px solid rgba(255,255,255,.08);
  align-items:center;
}
.pro-up{color:#10b981}.pro-down{color:#ef4444}
.pro-section{
  padding:86px 9%;
  background:#050913;
}
.pro-section.alt{
  background:linear-gradient(180deg,#050913,#07101f);
}
.pro-section-head{
  max-width:780px;
  margin-bottom:34px;
}
.pro-section-head small{
  color:#38bdf8;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:900;
}
.pro-section-head h2{
  color:#fff;
  font-size:44px;
  line-height:1.08;
  margin:10px 0;
}
.pro-section-head p{
  color:#aebace;
  line-height:1.7;
}
.pro-products{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.pro-product-card,.pro-account-card,.pro-step,.pro-faq-card{
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(8,13,24,.82));
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 60px rgba(0,0,0,.22);
}
.pro-product-icon{
  width:54px;height:54px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(37,99,235,.16);
  color:#38bdf8;
  font-size:24px;
  margin-bottom:18px;
}
.pro-product-card h3,.pro-account-card h3,.pro-step h3,.pro-faq-card h3{color:#fff;margin:0 0 10px}
.pro-product-card p,.pro-step p,.pro-faq-card p{color:#aebace;line-height:1.65}
.pro-advantages{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:28px;
  align-items:center;
}
.pro-adv-list{
  display:grid;
  gap:14px;
}
.pro-adv-item{
  display:flex;gap:14px;
  padding:18px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.045);
  border-radius:18px;
}
.pro-check{
  width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;
  background:#10b981;color:#04110c;font-weight:900;flex:0 0 auto;
}
.pro-accounts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.pro-account-card.featured{
  border-color:rgba(56,189,248,.5);
  box-shadow:0 20px 80px rgba(37,99,235,.24);
}
.pro-price{
  font-size:38px;
  font-weight:900;
  color:#fff;
  margin:10px 0 18px;
}
.pro-account-card ul{
  list-style:none;
  padding:0;margin:0 0 22px;
  display:grid;gap:11px;color:#cbd5e1;
}
.pro-account-card li:before{
  content:"✓";
  color:#10b981;
  margin-right:8px;
}
.pro-process{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.pro-step-number{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2563eb,#0ea5ff);
  color:#fff;font-weight:900;
  margin-bottom:16px;
}
.pro-faq-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.pro-risk{
  border-top:1px solid rgba(255,255,255,.08);
  color:#7f8da3;
  font-size:12px;
  line-height:1.7;
  padding:26px 9%;
  background:#030712;
}
@media(max-width:1100px){
  .pro-hero,.pro-advantages{grid-template-columns:1fr}
  .pro-hero h1{font-size:54px}
  .pro-products,.pro-accounts,.pro-process,.pro-faq-grid{grid-template-columns:1fr}
  .pro-stats{grid-template-columns:1fr}
}


/* Scroll fix for Professional Home */
html{
  min-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
}
body{
  min-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
}
body.home-pro{
  overflow-x:hidden !important;
  overflow-y:auto !important;
  height:auto !important;
  min-height:100vh;
}
.home-pro{
  overflow-x:hidden !important;
  overflow-y:auto !important;
}
.pro-hero,
.pro-section,
.pro-risk{
  overflow:visible;
}
.site-header{
  position:sticky;
  top:0;
  z-index:999;
}

/* Dashboard TradingView Watchlist */
.dashboard-tv-watch-card{
  min-height:420px;
}
.dashboard-tv-watch{
  height:360px;
  width:100%;
  overflow:hidden;
  border-radius:16px;
  background:#0b0f15;
}
.dashboard-tv-watch tv-market-data{
  display:block;
  width:100%;
  height:100%;
}
@media(max-width:1100px){
  .dashboard-tv-watch{height:520px;}
}

/* Account Performance Chart */
.account-performance-chart{
  min-height:320px;
  background:#0b0f15;
  border:1px solid rgba(255,255,255,.04);
}
.performance-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
  padding:14px 16px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
}
.performance-summary small{
  color:#94a3b8;
}
.performance-summary b{
  font-size:20px;
}

/* ===== NEXORA Light Theme + Tabs + Withdrawals ===== */
:root,[data-theme="light"]{--bg:#f4f7fb;--panel:#ffffff;--line:rgba(15,23,42,.12);--muted:#64748b;--text:#0f172a;--sidebar:#ffffff;--sidebarText:#1e293b;}
[data-theme="dark"]{--bg:#07090d;--panel:#10151d;--line:rgba(255,255,255,.14);--muted:#9aa4b3;--text:#ffffff;--sidebar:#000000;--sidebarText:#cfd6e2;}
body[data-private="true"] .app{background:var(--bg)!important;color:var(--text)!important;}
body[data-private="true"] .sidebar{background:var(--sidebar)!important;border-right:1px solid var(--line)!important;}
body[data-private="true"] .side-nav a{color:var(--sidebarText)!important;}
body[data-private="true"] .side-nav a:hover,body[data-private="true"] .side-nav a.active{background:rgba(37,99,235,.10)!important;color:#2563eb!important;}
body[data-private="true"] .card,body[data-private="true"] .user-pill,body[data-private="true"] .search,body[data-private="true"] .app .input,body[data-private="true"] .app .select{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;}
body[data-private="true"] .table td{border-color:var(--line)!important;}
body[data-private="true"] .table th,body[data-private="true"] .muted,body[data-private="true"] small{color:var(--muted)!important;}
body[data-private="true"] .btn.secondary{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;}
.theme-toggle{min-width:96px;}
.trade-tabs{display:flex;gap:10px;margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:12px;}
.trade-tab-btn{border:1px solid var(--line);background:var(--panel);color:var(--text);padding:10px 16px;border-radius:999px;font-weight:900;cursor:pointer;}
.trade-tab-btn.active{background:linear-gradient(135deg,#2563eb,#0ea5ff);color:#fff;border-color:transparent;}
.btn.small{padding:8px 10px;font-size:12px;border-radius:9px;margin:2px;}

/* Deposit methods UI */
.payment-methods{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.payment-method{
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  border-radius:14px;
  padding:14px 10px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.18s ease;
}
.payment-method:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(37,99,235,.12);
}
.payment-method.active{
  border-color:#2563eb;
  background:linear-gradient(135deg,rgba(37,99,235,.14),rgba(14,165,255,.12));
  color:#2563eb;
}
.deposit-method-info{
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--muted);
  background:rgba(37,99,235,.06);
  line-height:1.5;
}
@media(max-width:700px){
  .payment-methods{grid-template-columns:1fr;}
}


/* ===== NEXORA BUY/SELL PRICE BUTTONS FINAL ===== */
.quick-trade-panel.price-mode{
  display:grid!important;
  grid-template-columns:1fr 94px 1fr!important;
  gap:0!important;
  border:1px solid rgba(15,23,42,.18)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  margin:12px 0 10px!important;
  background:#0b0f15!important;
  min-height:70px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.quick-trade-panel.price-mode .qt-side{
  min-height:70px!important;
  border:0!important;
  padding:11px 16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:4px!important;
  color:#fff!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.quick-trade-panel.price-mode .qt-sell{
  background:linear-gradient(135deg,#0f7bff,#1459e9)!important;
}
.quick-trade-panel.price-mode .qt-buy{
  background:linear-gradient(135deg,#ff3748,#ef233c)!important;
  align-items:flex-end!important;
  text-align:right!important;
}
.quick-trade-panel.price-mode .qt-label{
  font-size:12px!important;
  line-height:1!important;
  letter-spacing:.03em!important;
  opacity:.98!important;
  text-transform:uppercase!important;
}
.quick-trade-panel.price-mode .qt-price{
  font-size:25px!important;
  line-height:1.05!important;
  letter-spacing:.01em!important;
  color:white!important;
  font-variant-numeric:tabular-nums!important;
}
.qt-spread-box{
  min-height:70px;
  background:linear-gradient(180deg,#101721,#070b11);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-left:1px solid rgba(255,255,255,.08);
  border-right:1px solid rgba(255,255,255,.08);
}
.qt-spread-box b{
  font-size:22px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.qt-spread-box span{
  margin-top:4px;
  color:#cbd5e1;
  font-size:12px;
}
.qt-volume-row{
  display:grid;
  grid-template-columns:44px 1fr 44px;
  height:46px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  margin-bottom:12px;
  background:var(--panel);
}
.qt-volume-row .qt-step{
  background:var(--panel)!important;
  color:var(--text)!important;
  border:0!important;
  cursor:pointer;
  font-size:22px;
  font-weight:900;
}
.qt-volume-row .qt-step:first-child{border-right:1px solid var(--line)!important;}
.qt-volume-row .qt-step:last-child{border-left:1px solid var(--line)!important;}
.qt-volume-row .qt-volume{
  background:var(--panel)!important;
  color:var(--text)!important;
  border:0!important;
  text-align:center;
  font-size:16px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.market-dot{color:#16a34a;font-size:13px;margin-left:6px}
.market-updated-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(16,185,129,.12);
  color:#059669;
  font-weight:800;
  margin-left:6px;
  white-space:nowrap;
}
.quick-trade-panel.price-mode:not(.quote-ready) .qt-price{
  opacity:.7;
}
@media(max-width:700px){
  .quick-trade-panel.price-mode{grid-template-columns:1fr 76px 1fr!important;}
  .quick-trade-panel.price-mode .qt-price{font-size:20px!important;}
  .qt-spread-box b{font-size:18px;}
}

.market-updated-badge.error{
  background:rgba(239,68,68,.12)!important;
  color:#dc2626!important;
}

#liveChart.chart{
  min-height:360px;
  height:360px;
  overflow:hidden;
  border-radius:14px;
}
.market-updated-badge.error{
  background:rgba(239,68,68,.12)!important;
  color:#dc2626!important;
}

#tradeResult.notice.error,
.notice.error{
  white-space:pre-wrap;
}
.market-updated-badge.error{
  background:rgba(239,68,68,.12)!important;
  color:#dc2626!important;
}

/* Admin user action buttons */
.admin-action-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}
.admin-action-stack .btn{
  min-width:176px;
  justify-content:center;
}
.admin-password-btn{
  border-color:#0f172a!important;
}
@media(max-width:700px){
  .admin-action-stack .btn{min-width:150px;font-size:14px;}
}


/* ===== Final UI cleanup ===== */
.grid-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.trading-main-metrics .metric small,
.dashboard-main-metrics .metric small{font-weight:700}
#qtProvider,#qtUpdated,.market-dot,.market-updated-badge{display:none!important}
#tradeResult.hidden + p.muted{display:none}
@media(max-width:1100px){.grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.grid-5{grid-template-columns:1fr}}


/* ===== Compact Trading Metrics Fix ===== */
.trading-metrics-row{
  display:grid;
  grid-template-columns:repeat(5,minmax(130px,1fr));
  gap:12px;
  margin-bottom:14px;
}
.trading-metrics-row .card.metric{
  padding:14px 16px;
  min-height:78px;
}
.trading-metrics-row .card.metric small{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  line-height:1.1;
}
.trading-metrics-row .card.metric b{
  font-size:24px;
  line-height:1.1;
}
.main > .trading-metrics-row + .grid.grid-2{
  margin-top:12px!important;
}
@media(max-width:1200px){
  .trading-metrics-row{grid-template-columns:repeat(3,minmax(130px,1fr));}
}
@media(max-width:760px){
  .trading-metrics-row{grid-template-columns:repeat(2,minmax(120px,1fr));}
}
@media(max-width:520px){
  .trading-metrics-row{grid-template-columns:1fr;}
}


/* ===== NEXORA REAL FINAL COMPACT UI ===== */
.dashboard-main-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
.trading-metrics-row{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.trading-metrics-row .card.metric{
  padding:12px 14px!important;
  min-height:74px!important;
}
.trading-metrics-row .card.metric small{
  display:block!important;
  margin-bottom:5px!important;
  font-size:12px!important;
  line-height:1.1!important;
}
.trading-metrics-row .card.metric b{
  display:block!important;
  font-size:22px!important;
  line-height:1.05!important;
}
.trade-main-grid{
  align-items:start!important;
}
#qtProvider,#qtUpdated,.market-dot,.market-updated-badge{
  display:none!important;
}
@media(max-width:1250px){
  .trading-metrics-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:900px){
  .dashboard-main-metrics{grid-template-columns:1fr!important;}
  .trading-metrics-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
  .trading-metrics-row{grid-template-columns:1fr!important;}
}
