/* ===================================================== */
/* ===================== RESET ========================= */
/* ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}



/* ===================================================== */
/* ================= LAYOUT BASE ======================= */
/* ===================================================== */

.dgx-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===================================================== */
/* ================= HEADER FULL STYLE ================= */
/* ===================================================== */

.dgx-header {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0px 20px 0px 10px;
  background: linear-gradient(
  90deg,
  rgba(11,16,32,0.8),
  rgba(12,19,37,0.8)
);
backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2000;
}

.dgx-header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dgx-content-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* 🔥 GRUPO REAL */
.dgx-header-left-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* LOGO */
.dgx-header-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.dgx-header-logo img {
  height: 80px;
  width: auto;
  margin-left:10px;
  display: block;

  /* opcional glow */
  filter: drop-shadow(0 4px 10px rgba(140, 91, 255, 0.35));

  transition: transform 0.25s ease;
}

.dgx-header-logo:hover img {
  transform: scale(1.05);
}



/* LEFT & RIGHT GROUPS */


.dgx-header-left,
.dgx-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 1200px) {
  .dgx-header-left {
    margin-left: 180px;
  }

  .dgx-header-logo img {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .dgx-header-left {
    margin-left: 120px;
  }

  .dgx-header-logo img {
    height: 55px;
  }
}




/* ===================================================== */
/* ================= ÁREA DE AVATARES ================== */
/* ===================================================== */

.dgx-avatar-wrapper {
  position: relative;
}

.dgx-avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;	
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 2px solid var(--dgx-border);
  transition: all 0.3s ease;
}

.dgx-avatar-wrapper:hover .dgx-avatar {
  box-shadow: 0 0 12px var(--dgx-accent-primary);
  transform: scale(1.05);
}


.dgx-user-left .dgx-avatar {
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid var(--dgx-border);  
}

.dgx-ticket-user .dgx-avatar {
  max-width: 64px;
  max-height: 64px;
  border-radius: 14px;
  border: 2px solid var(--dgx-border);
}

.dgx-message .dgx-avatar {
  max-width: 48px;
  max-height: 48px;
  border-radius: 14px;
  border: 2px solid var(--dgx-border);
  transition: all 0.3s ease;
}


/*- JOB AVATAR -*/
.dgx-job-avatar{
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.dgx-job-sprite{
width:100%;
background-repeat:no-repeat;
image-rendering:pixelated;
}


/* tamaños */

.dgx-job-avatar-head{
width:100%;
height:auto;
}

.dgx-job-avatar-middle{
width:100%;
height:auto;
}

.dgx-job-avatar-full{
width:100%;
height:auto;
}



/* ===================================================== */
/* ================= USER AREA ========================= */
/* ===================================================== */

.dgx-user-inline {
  display: flex;
  align-items: center;
  gap: 18px;
}



.dgx-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dgx-user-greeting {
  font-size: 15px;
  font-weight: 500;
  color: var(--dgx-text-main);
}

.dgx-username {
  font-weight: 600;
  color: var(--dgx-accent-primary);
}

.dgx-user-links {
  font-size: 13px;
  display: flex;
  gap: 8px;
  color: var(--dgx-text-muted);
}

.dgx-user-links a {
  color: var(--dgx-text-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.dgx-user-links a:hover {
  color: var(--dgx-accent-primary);
}




/* ===================================================== */
/* ================= ECONOMY PILLS ===================== */
/* ===================================================== */

.dgx-user-economy {
  display: flex;
  gap: 10px;
}

.dgx-economy-pill {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dgx-border);
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.2s ease;

}

.dgx-economy-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* ===================================================== */
/* ================= RIGHT SIDE INFO =================== */
/* ===================================================== */

.dgx-header-info {
  font-size: 13px;
  color: var(--dgx-text-muted);
}

.dgx-header-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dgx-border);
  font-size: 14px;
  transition: all 0.3s ease;  
  vertical-align: middle;  
  display:flex;
}

.dgx-header-pill:hover {
  transform: translateY(-2px);
}

.dgx-header-pill [data-lucide] {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  margin-right:6px;
  transition: all 0.25s ease;
}


/* =========================
   SERVER STATUS ANIMATION
========================= */

.dgx-status-online {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  align-items: center;
}

.dgx-status-online::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dgxPulse 1.8s infinite;
  vertical-align: middle;
}


.dgx-status-online-main {
  color: #22c55e;
  align-items: center;
}

.dgx-status-online-main::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dgxPulse 1.8s infinite;
  vertical-align: middle;
}

@keyframes dgxPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.dgx-status-online-card {
  color: #e67d1e;
}

.dgx-status-online-card::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e67d1e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: dgxPulse 1.8s infinite;  
  vertical-align: middle;
}

.dgx-status-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.dgx-status-offline::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ef4444;
  vertical-align: middle;
}

.dgx-status-offline-card {
  color: #e67d1e;
}

.dgx-status-offline-card::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e67d1e;
  vertical-align: middle;
}


.dgx-status-partial {
  background: rgba(230, 125, 30, 0.12);
  color: #e67d1e;
}

.dgx-status-partial::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e67d1e;
  vertical-align: middle;
}


.dgx-status-partial-card {
  color: #e67d1e;
}

.dgx-status-partial-card::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e67d1e;
  vertical-align: middle;
}


/* ===============================
   HEADER SERVER STATUS
================================ */

.dgx-header-status {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.dgx-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dgx-header-dot.online {
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.7);
}

.dgx-header-dot.offline {
  background: #ff4d4f;
  box-shadow: 0 0 6px rgba(255, 77, 79, 0.7);
}



/* ===================================================== */
/* ===================== SIDEBAR ======================= */
/* ===================================================== */


/* =========================
   BASE SIDEBAR
========================= */

.dgx-sidebar {
  width: 240px;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 1200;

  background: rgba(18,22,38,0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-right: 1px solid rgba(255,255,255,0.06);
  box-shadow: 8px 0 30px rgba(0,0,0,0.35);

  transition: width .3s ease;
}

/* =========================
   MAIN CONTENT
========================= */

.dgx-main {
  flex: 1;
  display: flex;
  min-height: 0; /* 🔥 evita bugs de overflow */
}

/* =========================
   DESKTOP COLLAPSE
========================= */

body.sidebar-collapsed .dgx-sidebar {
  width: 80px;
}

body.sidebar-collapsed .dgx-menu-text,
body.sidebar-collapsed .dgx-sidebar-section,
body.sidebar-collapsed .dgx-sidebar-divider,
body.sidebar-collapsed .dgx-sidebar-banner,
body.sidebar-collapsed .dgx-sidebar-bottom {
  display: none;
}

body.sidebar-collapsed .dgx-sidebar-nav a {
  justify-content: center;
}

/* Chevron rotate */

.dgx-sidebar-toggle svg {
  transition: transform .3s ease;
}

body.sidebar-collapsed .dgx-sidebar-toggle svg {
  transform: rotate(180deg);
}

/* Rotación también en móvil */
@media (max-width: 992px) {

  body.sidebar-expanded .dgx-sidebar-toggle svg {
    transform: rotate(180deg);
  }

}

/* =========================
   LOGO
========================= */

.dgx-sidebar-top {
  padding: 0 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dgx-sidebar-logo img {
  max-width: 160px;
  height: auto;
}

body.sidebar-collapsed .dgx-sidebar-top {
  display: none;
}

/* =========================
   NAVIGATION
========================= */

.dgx-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px; /* antes 6px */
}

.dgx-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.dgx-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}

.dgx-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dgx-text-muted);
  transition: background .25s ease, color .25s ease;
}

.dgx-sidebar-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.dgx-sidebar-nav a.active {
  background: linear-gradient(
    135deg,
    rgba(255,0,120,0.25),
    rgba(140,0,255,0.25)
  );
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
}



/* ===================================================== */
/* ============ ACTIVE INDICATOR (DISCORD) ============ */
/* ===================================================== */

.dgx-sidebar-nav a {
  position: relative;
  overflow: hidden;
}

/* Barra base (oculta por defecto) */
.dgx-sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    #ff2e82,
    #8c00ff
  );
  border-radius: 4px;
  transition: transform 0.2s ease, height 0.2s ease;
}

/* Activo */
.dgx-sidebar-nav a.active::before {
  transform: translateY(-50%) scaleY(1);
  height: 80%;
}

/* Hover suave (opcional pero elegante) */
.dgx-sidebar-nav a:hover::before {
  transform: translateY(-50%) scaleY(0.7);
}


@media (max-width: 992px) {

  body:not(.sidebar-expanded) .dgx-sidebar-nav a::before {
    left: 2px;
    width: 3px;
  }

}



/* ICONS */

.dgx-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dgx-menu-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.75;
  transition: all .25s ease;
}

.dgx-sidebar-nav a:hover .dgx-menu-icon svg,
.dgx-sidebar-nav a.active .dgx-menu-icon svg {
  opacity: 1;
  stroke: #ff2e82;
}

/* =========================
   SECTIONS & DIVIDER
========================= */

.dgx-sidebar-section {
  margin: 18px 8px 6px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.5;
}

.dgx-sidebar-divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255,255,255,0.05);
}

/* =========================
   TOGGLE BUTTON
========================= */

.dgx-sidebar-toggle {
  position: absolute;
  top: 30px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: #1e1e2f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 1000;
}

.dgx-sidebar-toggle:hover {
  transform: scale(1.1);
}

/* ===================================================== */
/* ================= MOBILE VERSION ==================== */
/* ===================================================== */

@media (max-width: 992px) {

  .dgx-sidebar {
    position: fixed;
    top: 0;
	bottom: 0;
    left: 0;
    width: 70px;
    z-index: 1200;
  }

  body.sidebar-expanded .dgx-sidebar {
    width: 220px;
  }

  .dgx-main {
    margin-left: 70px;
  }

  body.sidebar-expanded .dgx-main {
    margin-left: 220px;
  }


  body.sidebar-expanded .dgx-menu-text,
  body.sidebar-expanded .dgx-sidebar-section,
  body.sidebar-expanded .dgx-sidebar-divider,
  body.sidebar-expanded .dgx-sidebar-banner,
  body.sidebar-expanded .dgx-sidebar-bottom {
    display: block;
  }

}

@media (max-width: 992px) {

  .dgx-sidebar-nav {
    padding: 10px 6px;
  }

  .dgx-sidebar-nav a {
    padding: 12px 0;
    justify-content: center;
  }

  .dgx-menu-icon svg {
    width: 22px;
    height: 22px;
  }

}

@media (max-width: 992px) {

  /* Compacto */
  body:not(.sidebar-expanded) .dgx-sidebar-nav a {
    justify-content: center;
  }

  /* Expandido */
  body.sidebar-expanded .dgx-sidebar-nav a {
    justify-content: flex-start;
    padding-left: 16px;
  }

}


/* ===================================================== */
/* ================= MOBILE CLEAN VERSION ============== */
/* ===================================================== */

@media (max-width: 992px) {

  /* ===== Sidebar base ===== */

  .dgx-sidebar {
    width: 72px;
  }

  body.sidebar-expanded .dgx-sidebar {
    width: 230px;
  }

  /* ===== Compact mode ===== */

  body:not(.sidebar-expanded) .dgx-menu-text,
  body:not(.sidebar-expanded) .dgx-sidebar-section,
  body:not(.sidebar-expanded) .dgx-sidebar-divider,
  body:not(.sidebar-expanded) .dgx-sidebar-banner,
  body:not(.sidebar-expanded) .dgx-sidebar-bottom {
    display: none;
  }

  body:not(.sidebar-expanded) .dgx-sidebar-nav a {
    justify-content: center;
    padding: 16px 0;
  }

  /* ===== Expanded mode ===== */

  body.sidebar-expanded .dgx-sidebar-nav {
    padding: 16px 12px;
    gap: 10px;
  }

  body.sidebar-expanded .dgx-sidebar-nav a {
    justify-content: flex-start;
    padding: 14px 14px;
  }

  body.sidebar-expanded .dgx-sidebar-section {
    margin: 20px 10px 8px;
  }

}



/* ================= CONTENT ================= */

.dgx-content {
  flex: 1;
  padding: 30px;
  overflow-x: hidden;
}


/* ================= TOPBAR ================= */

.dgx-topbar {
  background: var(--dgx-bg-elevated);
  padding: 16px 24px;
  border-radius: var(--dgx-radius-md);
  border: 1px solid var(--dgx-border);
  margin-bottom: 25px;
}

.dgx-topbar strong {
  font-size: 16px;
  font-weight: 600;
}

.dgx-topbar .dgx-text-muted {
  font-size: 14px;
}




/* ===================================================== */
/* ================= ACCOUNT SUBMENU =================== */
/* ===================================================== */

/* CONTENEDOR */

.dgx-submenu {
  display: flex;
  flex-wrap: wrap;              /* 👈 permite que bajen */
  justify-content: center;
  align-items: center;
  gap: 16px;

  padding: 14px 18px;
  margin: 20px 0 30px 0;

  background: rgba(20, 24, 45, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}

@media (max-width: 768px) {
  .dgx-submenu {
    gap: 12px;
  }

  .dgx-submenu a {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  .dgx-submenu a {
    flex: 1 1 45%;
    text-align: center;
  }
}


/* Links base */

.dgx-submenu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;
  color: #aeb6d9;
  text-decoration: none;

  transition: all 0.25s ease;
}

/* Hover */

.dgx-submenu a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}


/* Active */

.dgx-submenu a.active {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 120, 0.25),
    rgba(140, 0, 255, 0.25)
  );

  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
}


/* Iconos */

.dgx-submenu a [data-lucide] {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.dgx-submenu a:hover [data-lucide],
.dgx-submenu a.active [data-lucide] {
  opacity: 1;
  stroke: #ff2e82;
}



.dgx-main-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  box-sizing: border-box;
}


/* ================= FOOTER ================= */

.dgx-footer {
  padding: 25px 40px;
  background: #0b1020;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 1600;  
}

.dgx-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.dgx-footer-left {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-self: start;
}

.dgx-footer-center {
  text-align: center;
  font-size: 14px;
  color: #9aa4c6;
  opacity: 0.8;
  justify-self: center;
}

.dgx-footer-right {
  justify-self: end;
}

.dgx-footer select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e0e6ff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.dgx-footer select:hover {
  border-color: #ff2e82;
}

.dgx-footer label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9aa4c6;
}

/* ================= PAGE TOPBAR ================= */


.dgx-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}


.dgx-page-actions a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dgx-text-muted);
  transition: 0.2s ease;
}


.dgx-page-actions a:hover {
  color: var(--dgx-accent-primary);
}

.dgx-page-actions svg {
  width: 16px;
  height: 16px;
}

.dgx-separator {
  opacity: 0.4;
}

/* ================= GLASS CARD ================= */

.dgx-card-glass {
  background: rgba(20, 24, 45, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 30px;
}




/* ===================================================== */
/* ============ SIDEBAR VERTICAL SUBMENU ============== */
/* ===================================================== */

.dgx-sidebar-submenu {
  display: flex;
  flex-direction: column;
}

.dgx-sidebar-submenu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 10px 12px;

  background: none;
  border: none;
  color: var(--dgx-text-muted);
  cursor: pointer;
  text-align: left;

  border-radius: 10px;
  transition: background .25s ease;
}

.dgx-sidebar-submenu-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.dgx-sidebar-submenu-toggle .dgx-chevron {
  margin-left: auto;
  transition: transform .25s ease;
}

.dgx-sidebar-submenu.active .dgx-chevron {
  transform: rotate(180deg);
}

/* Contenido */

.dgx-sidebar-submenu-content {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  margin-top: 6px;
}

.dgx-sidebar-submenu.active .dgx-sidebar-submenu-content {
  display: flex;
}

.dgx-sidebar-submenu-content a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  font-size: 14px;
  text-decoration: none;
  color: var(--dgx-text-muted);
  transition: color .2s ease;
}

.dgx-sidebar-submenu-content a:hover {
  color: #fff;
}

/* ===== SIDEBAR CATEGORY TITLE ===== */

.dgx-sidebar-submenu-toggle {
  font-size: 15px;
  letter-spacing: 0.3px;  
  font-weight: 600; /* un poco más grueso */
  color: #cfd6ff;
}

.dgx-sidebar-submenu-toggle .dgx-menu-text {
  font-weight: 600;
}

.dgx-sidebar-submenu-toggle:hover {
  background: rgba(255,255,255,0.05);
}


/* =========================
   COLLAPSED FIX SUBMENU
========================= */


body.sidebar-collapsed .dgx-sidebar-submenu-toggle .dgx-menu-text {
  display: none;
}


body.sidebar-collapsed .dgx-sidebar-nav a,
body.sidebar-collapsed .dgx-sidebar-submenu-toggle {
  justify-content: center;
  padding: 12px 0;
}

body.sidebar-collapsed .dgx-menu-icon {
  margin: 0;
}

/* =========================
   COLLAPSED CHEVRON STYLE
========================= */

body.sidebar-collapsed .dgx-sidebar-submenu-toggle {
  position: relative;
  justify-content: center;
}

body.sidebar-collapsed .dgx-sidebar-submenu-toggle .dgx-chevron {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;

  background: rgba(140, 120, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(6px);
  transition: all .25s ease;
}

body.sidebar-collapsed .dgx-sidebar-submenu.active .dgx-chevron {
  transform: translateY(-50%) rotate(180deg);
}

body.sidebar-collapsed .dgx-sidebar-submenu-toggle .dgx-chevron svg {
  width: 14px;
  height: 14px;
}

/* =========================
   COLLAPSED SUBMENU PANEL
========================= */

body.sidebar-collapsed .dgx-sidebar-submenu-content {
  position: absolute;
  left: 80px; /* ancho sidebar compacto */
  top: 0;

  min-width: 180px;
  padding: 10px 14px;

  background: rgba(20, 24, 45, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);

  display: none;
  z-index: 2000;
}

body.sidebar-collapsed .dgx-sidebar-submenu.active .dgx-sidebar-submenu-content {
  display: flex;
  flex-direction: column;
}

body.sidebar-collapsed .dgx-sidebar-submenu {
  position: relative;
}

/* =========================
   FLOATING SIDEBAR MENU - GLASS
========================= */

#dgxSidebarFloatingMenu {
  position: fixed;
  left: 90px; /* ancho sidebar compacto */
  min-width: 210px;

  background: rgba(18, 22, 38, 0.65); /* igual que sidebar */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;

  box-shadow: 
    0 20px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  padding: 10px 0;

  display: none;
  flex-direction: column;

  z-index: 5000;

  animation: dgxFloatingFade .18s ease;
}

/* Items */

#dgxSidebarFloatingMenu a {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--dgx-text-muted);

  display: flex;
  align-items: center;
  gap: 10px;

  transition: all .2s ease;
}

/* Hover igual que sidebar */

#dgxSidebarFloatingMenu a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

/* Iconos dentro */

#dgxSidebarFloatingMenu a [data-lucide] {
  width: 16px;
  height: 16px;
  opacity: 0.75;
  transition: all .2s ease;
}

#dgxSidebarFloatingMenu a:hover [data-lucide] {
  opacity: 1;
  stroke: #ff2e82;
}

/* Animación */

@keyframes dgxFloatingFade {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================
   FIX SUBMENU ICONS IN MOBILE COMPACT
========================================= */

@media (max-width: 992px) {

  body:not(.sidebar-expanded) .dgx-sidebar-submenu-toggle {
    padding: 12px 0;
    justify-content: center;
    gap: 0;
  }

  body:not(.sidebar-expanded) .dgx-sidebar-submenu-toggle .dgx-menu-text {
    display: none;
  }

  body:not(.sidebar-expanded) .dgx-sidebar-submenu-toggle .dgx-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  body:not(.sidebar-expanded) .dgx-sidebar-submenu-toggle svg {
    width: 22px;
    height: 22px;
  }

  /* Chevron flotante circular */

  body:not(.sidebar-expanded) .dgx-sidebar-submenu-toggle .dgx-chevron {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(90, 110, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    padding: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body:not(.sidebar-expanded) .dgx-sidebar-submenu-toggle {
    position: relative;
  }

}


.dgx-text-success { color: #2ecc71; }
.dgx-text-danger  { color: #ff4d4f; }
.dgx-text-warning { color: #ffb020; }


/* ==========================================
   HISTORY SPACING IMPROVEMENTS
========================================== */



.dgx-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}

.dgx-section-title svg {
  width: 20px;
  height: 20px;
  opacity: .9;
}


.dgx-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.35),
    transparent
  );
  border-radius: 2px;
}


.dgx-user-meta {
  display: flex;
  flex-direction: column;
}

.dgx-username {
  font-weight: 600;
}

.dgx-vip-badge {
  font-size: 10px;
  background: linear-gradient(135deg,#ffd700,#ff9f00);
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  margin-top: 2px;
}

.dgx-user-dropdown.active {
  display: flex;
}

.dgx-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #cfd3ff;
  transition: background .2s ease;
}

.dgx-user-dropdown a:hover {
  background: rgba(255,255,255,.08);
}

.dgx-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 8px 0;
}

.dgx-dropdown-label {
  font-size: 11px;
  opacity: .6;
  padding: 6px 10px;
}

.dgx-user-dropdown-wrapper {
  position: relative;
}

.dgx-user-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}


.dgx-user-trigger:hover {
  background: rgba(255,255,255,.05);
}

.dgx-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dgx-user-meta {
  display: flex;
  flex-direction: column;
}

.dgx-user-chevron {
  opacity: .6;
}

.dgx-vip-badge {
  font-size: 10px;
  background: linear-gradient(135deg,#ffd700,#ff9f00);
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  margin-top: 2px;
}


.dgx-user-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}


.dgx-role-badge {
  font-size: 12px;
  background:#ff2e82;  
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin-left: 6px;  
}

.dgx-role-badge.vip {
  background: #f5c518;
  color: #111;
}

.dgx-role-badge.admin {
  background: linear-gradient(90deg,#ff2d75,#ff5f6d);
  color: #fff;
}



/* contenedor */
#dgx-activity-feed {
    overflow: hidden;
}

/* línea normal */
.dgx-activity-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

/* 🔥 entrada (slide derecha → izquierda) */
.dgx-activity-line.new {
    transform: translateX(40px);
    opacity: 0;
}

.dgx-activity-line {
    transform: translateX(0);
    opacity: 1;
}

/* 🔥 salida */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}