
/* DXCELL Crypto Terminal — Wide Layout (crypto-charts page only) */

/* Make the terminal feel full-bleed without touching other pages */
html, body { overflow-x: hidden; }

/* Target common container patterns safely */
body .container,
body .wrap,
body .page,
body .content,
body main {
  max-width: none !important;
}

/* If the page uses a central wrapper, widen it */
body .shell,
body .app,
body .layout,
body .panel-wrap,
body .chart-wrap,
body .chart-card,
body .card {
  max-width: none !important;
}

/* Tighten side padding for terminal density */
body {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Reduce inner padding on the chart card if present */
body .chart-card,
body .chart-container,
body #chart,
body #dx-chart,
body .dx-chart,
body .terminal-chart {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Keep HUD readable while allowing more width */
#dx-hud, .dx-hud, .hud {
  max-width: min(520px, 92vw);
}

/* Ensure top bar doesn’t constrain width */
header, .topbar, .nav, .navbar {
  max-width: none !important;
}

/* Right-side Price Ladder */
.dx-price-ladder{
  position: fixed;
  top: 118px;
  right: 10px;
  width: 118px;
  max-height: calc(100vh - 170px);
  background: rgba(8,12,18,.62);
  border: 1px solid rgba(130,255,185,.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  pointer-events: auto;
}
.dx-price-ladder__hdr{
  padding: 10px 10px 8px;
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(235,245,255,.62);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dx-price-ladder__list{
  padding: 8px 6px 10px;
  overflow: auto;
}
.dx-price-ladder__row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  padding: 6px 6px;
  border-radius: 10px;
  color: rgba(235,245,255,.72);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.dx-price-ladder__row--mid{
  background: rgba(67,255,164,.10);
  border: 1px solid rgba(67,255,164,.18);
  color: rgba(235,245,255,.95);
  font-weight: 700;
}
.dx-price-ladder__dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}
.dx-price-ladder__row--up .dx-price-ladder__dot{ background: rgba(67,255,164,.75); }
.dx-price-ladder__row--down .dx-price-ladder__dot{ background: rgba(255,92,122,.75); }

@media (max-width: 980px){
  .dx-price-ladder{ display:none; }
}

/* Terminal tool pills */
.dx-pill-tool{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(130,255,185,.16);
  background: rgba(8,12,18,.40);
  color: rgba(235,245,255,.82);
  font-size: 12px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.dx-pill-tool:hover{
  transform: translateY(-1px);
  background: rgba(8,12,18,.55);
  border-color: rgba(130,255,185,.28);
}
.dx-pill-tool.is-on{
  background: rgba(67,255,164,.12);
  border-color: rgba(67,255,164,.35);
  color: rgba(235,245,255,.95);
}
.dx-pill-key{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(20,26,51,.85);
  border: 1px solid rgba(42,53,104,.85);
  color: rgba(235,245,255,.85);
  font-weight: 700;
  font-size: 11px;
}

/* Focus Mode (Crypto Charts only) */
body.dx-focus header,
body.dx-focus .topbar,
body.dx-focus .nav,
body.dx-focus .navbar,
body.dx-focus .header,
body.dx-focus #top-nav,
body.dx-focus .site-header {
  display: none !important;
}

body.dx-focus {
  padding-left: 2px !important;
  padding-right: 2px !important;
}

body.dx-focus .dx-price-ladder{
  top: 10px;
  right: 6px;
  max-height: calc(100vh - 30px);
}

body.dx-focus .dx-legend-hint{
  bottom: 6px;
}

body.dx-focus .dx-legend-context{
  bottom: 44px;
}

/* If there is a chart card wrapper, remove extra chrome */
body.dx-focus .chart-card,
body.dx-focus .chart-container,
body.dx-focus .terminal-chart,
body.dx-focus .dx-chart {
  padding-left: 4px !important;
  padding-right: 4px !important;
  border-radius: 10px;
}

/* Make main chart area stretch */
body.dx-focus main,
body.dx-focus .content,
body.dx-focus .page,
body.dx-focus .wrap,
body.dx-focus .container,
body.dx-focus .shell {
  width: 100% !important;
  max-width: none !important;
}

/* ===============================
   Mr Moon Dock (M)
   =============================== */
.mrmoonDock{
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  max-width: 100%;
  margin: 14px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(130,255,185,.16);
  background: radial-gradient(900px 260px at 50% 0%, rgba(130,255,185,.10), rgba(0,0,0,0)), rgba(8,12,18,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
}
.mrmoonDock.is-open{ display: flex; }
.mrmoonDock__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mrmoonDock__id{ display: flex; align-items: center; gap: 12px; }
.mrmoonDock__avatar{
  width: 34px; height: 34px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(130,255,185,.12);
}
.mrmoonDock__title{ font-weight: 700; letter-spacing: .08em; font-size: .86rem; }
.mrmoonDock__sub{ font-size: .74rem; opacity: .72; }
.mrmoonDock__body{
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}
.mrmoonMsg{
  width: fit-content;
  max-width: min(720px, 100%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  line-height: 1.35;
}
.mrmoonMsg.me{
  align-self: flex-end;
  border-color: rgba(130,255,185,.18);
  background: rgba(130,255,185,.07);
}
.mrmoonMsg .meta{ display:block; font-size:.72rem; opacity:.65; margin-bottom: 4px; }
.mrmoonDock__form{
  display: flex;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mrmoonDock__input{
  flex: 1;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(235,245,255,.92);
  padding: 0 14px;
  outline: none;
}
.mrmoonDock__input:focus{ border-color: rgba(130,255,185,.22); box-shadow: 0 0 0 3px rgba(130,255,185,.08); }
.mrmoonDock__send{
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(130,255,185,.22);
  background: rgba(130,255,185,.10);
  color: rgba(235,245,255,.92);
  font-weight: 700;
  letter-spacing: .08em;
}
.mrmoonDock__send:hover{ background: rgba(130,255,185,.14); }

@media (max-width: 820px){
  .mrmoonDock{ left: 10px; right: 10px; bottom: 10px; }
  .mrmoonDock__body{ max-height: 200px; }
}

/* === DXCELL FINAL UI FIXES === */

.agent-desc, .enter-btn { display:none !important; }

.agent-card {
  transition: all 0.25s ease;
  transform: perspective(1000px);
}

.agent-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0,255,150,0.15);
}

/* Reduce oversized headers */
.hero h1 {
  font-size: 42px !important;
  max-width: 700px;
}

/* Navbar tightening */
.navbar {
  height: 60px !important;
}

/* Fix stretched images */
img {
  object-fit: contain;
}
