/* ===================================================== */
/* ===================== CARDS ========================= */
/* ===================================================== */

.dgx-card {
  background:rgba(255,255,255,0.04);
  padding:24px 24px;
  border-radius:16px;
  backdrop-filter:blur(8px);
  margin-bottom: 24px;
  border: 1px solid var(--dgx-border);
  box-shadow: var(--dgx-shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dgx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}


@media (max-width: 768px) {
  .dgx-card {
    padding: 18px;
    min-height: auto;
  }
}



/* ===================================================== */
/* ===================== BUTTONS ======================= */
/* ===================================================== */

.dgx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--dgx-radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--dgx-transition);
}


.dgx-btn-primary {
  background: linear-gradient(
    135deg,
    var(--dgx-accent-primary),
    var(--dgx-accent-secondary)
  );
  width: 100%;
  padding: 14px;
  font-size: 15px;
  background: linear-gradient(135deg,var(--dgx-accent-primary),var(--dgx-accent-secondary));
  color: #fff;
}

.dgx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--dgx-glow-primary);
}

.dgx-btn-secondary {
  background: var(--dgx-bg-elevated);
  border: 1px solid var(--dgx-border);
  color: var(--dgx-text-main);
}

.dgx-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.dgx-btn-discord {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #5865F2;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s ease;
}

.dgx-btn-discord:hover {
  transform: translateY(-2px);
}


/* ===================================================== */
/* ===================== INPUTS ======================== */
/* ===================================================== */

.dgx-input,
.dgx-textarea {
  width: 100%;
  padding: 14px;
  border-radius: var(--dgx-radius-sm);
  border: 1px solid var(--dgx-border);
  background: var(--dgx-bg-elevated);
  color: var(--dgx-text-main);
  transition: var(--dgx-transition);
}

.dgx-input:focus,
.dgx-textarea:focus {
  outline: none;
  border-color: var(--dgx-accent-primary);
  box-shadow: var(--dgx-glow-primary);
}

.dgx-textarea {
  min-height: 200px;
}


/* ===================================================== */
/* ===================== BADGES ======================== */
/* ===================================================== */

.dgx-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.dgx-status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.dgx-status-dot.offline {
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
}

/* ===================================================== */
/* ===================== ROLE BADGES =================== */
/* ===================================================== */

.dgx-username {
  font-weight: 600;
  margin-right: 6px;
}




/* ===================================================== */
/* ================= PROFILE GRID ====================== */
/* ===================================================== */

.dgx-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 40px;
}

/* ===================================================== */
/* ================= TABLE ENHANCED ==================== */
/* ===================================================== */

.dgx-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.dgx-table th {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dgx-text-muted);
  padding: 12px;
  border-bottom: 1px solid var(--dgx-border);
}

.dgx-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dgx-table tr:hover {
  background: rgba(255,255,255,0.03);
}


/* ===================================================== */
/* ================= PROFILE VISUAL ==================== */
/* ===================================================== */

.dgx-profile-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dgx-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--dgx-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

.dgx-label svg,
.dgx-label [data-lucide] {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

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

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

/* =========================
   PLAYER COUNTER ANIMATION
========================= */

.dgx-counter-change {
  transition: transform 0.3s ease, color 0.3s ease;
}

.dgx-counter-up {
  color: #22c55e;
  transform: scale(1.15);
}

.dgx-counter-down {
  color: #ef4444;
  transform: scale(1.15);
}


/* =========================
   WALLET SYSTEM
========================= */

.dgx-wallet {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.dgx-wallet-main {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  padding: 6px 14px;
  border-radius: 14px;
  gap: 14px;
  backdrop-filter: blur(6px);
  transition: 0.2s ease;
}

.dgx-wallet-main:hover {
  background: rgba(255,255,255,0.08);
}

.dgx-wallet-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.dgx-wallet-item svg {
  width: 16px;
  height: 16px;
}

.dgx-wallet-value {
  font-weight: 600;
}

.dgx-wallet-label {
  opacity: 0.6;
  font-size: 11px;
}

.dgx-wallet-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
}


/* ==========================================
   DGX GLOBAL ALERT SYSTEM
========================================== */

.dgx-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  position: relative;
  backdrop-filter: blur(8px);
  animation: dgxAlertFade .25s ease;
  border: 1px solid transparent;
}

/* Iconos */
.dgx-alert svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  stroke-width: 2;
}

/* Texto */
.dgx-alert strong {
  font-weight: 600;
}

.dgx-alert a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

/* ERROR */
.dgx-alert-error {
  background: rgba(255, 75, 75, 0.08);
  border-color: rgba(255, 75, 75, 0.25);
  color: #ffbaba;
}

.dgx-alert-error::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: #ff4d4d;
}

/* SUCCESS */
.dgx-alert-success {
  background: rgba(76, 217, 100, 0.08);
  border-color: rgba(76, 217, 100, 0.25);
  color: #b8f7cf;
}

.dgx-alert-success::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: #4cd964;
}

/* WARNING */
.dgx-alert-warning {
  background: rgba(255, 179, 71, 0.08);
  border-color: rgba(255, 179, 71, 0.25);
  color: #ffe2b8;
}

.dgx-alert-warning::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: #ffb347;
}

/* INFO */
.dgx-alert-info {
  background: rgba(0, 150, 255, 0.08);
  border-color: rgba(0, 150, 255, 0.25);
  color: #a8d8ff;
}

.dgx-alert-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: #4db3ff;
}

/* Animación */
@keyframes dgxAlertFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------
SISTEMA DROPDOWN 
--------------------------*/

.dgx-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ==============================
   DGX UNIVERSAL DROPDOWN
============================== */


.dgx-float-dropdown .dgx-dropdown-menu {

  position: fixed;
  min-width: 230px;

  background: linear-gradient(
    180deg,
    rgba(18, 22, 40, 0.98),
    rgba(14, 18, 36, 0.98)
  );

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

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

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  z-index: 6000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.dgx-float-dropdown .dgx-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==============================
   LINKS
============================== */

.dgx-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 10px;
  padding: 10px 12px;
  border-radius: 10px;

  font-size: 14px;
  color: #cfd6ff;
  text-decoration: none;

  transition: background .15s ease, color .15s ease;
}

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

/* ==============================
   DIVIDER
============================== */

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

/* ==============================
   LABEL
============================== */

.dgx-dropdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,0.45);
  padding: 6px 12px 4px;
}

/* ==============================
   DANGER
============================== */

.dgx-dropdown-menu a.danger {
  color: #ff5b7f;
}

.dgx-dropdown-menu a.danger:hover {
  background: rgba(255, 80, 110, 0.1);
  color: #ff7a95;
}

.dgx-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;

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

  cursor: pointer;
  user-select: none;

  transition: background .18s ease, box-shadow .18s ease;
}

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

.dgx-dropdown-toggle.active {
  background: rgba(255,255,255,0.08);
}

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



.dgx-dropdown-toggle .dgx-chevron-wrap {
  display: flex;
  align-items: center;
  transition: transform .2s ease;
}

.dgx-dropdown-toggle.active .dgx-chevron-wrap {
  transform: rotate(180deg);
}

.dgx-dropdown-toggle:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}


.dgx-search-toggle {
  margin-bottom: 15px;
}

.dgx-search-wrapper {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease;
}

.dgx-search-wrapper.active {
  max-height: 1500px;
  opacity: 1;
  margin-bottom: 20px;
}

.dgx-search-form {
  background: rgba(20,24,45,0.65);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
}

/* ===================================================== */
/* ================= SEARCH GRID ======================= */
/* ===================================================== */

.dgx-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/* Tablet */

@media (max-width: 1100px) {
  .dgx-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */

@media (max-width: 640px) {
  .dgx-search-grid {
    grid-template-columns: 1fr;
  }
}

.dgx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dgx-search-form input,
.dgx-search-form select {
    width: 100%;
    padding: 8px 10px;
	background: rgba(20,24,45,0.8);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 10px;
    color: #fff;
    font-size: 13px;
    transition: all .2s ease;
}


/* =====================================
   DGX PAGINATION + PAGE JUMP
===================================== */

.dgx-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-top: 20px;
}

/* Links de páginas */

.dgx-pagination a {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--dgx-text-muted);
  text-decoration: none;
  transition: all .2s ease;
}

.dgx-pagination a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Página actual */

.dgx-pagination strong {
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7b5cff, #ff2e82);
  color: #fff;
  font-weight: 600;
}

/* Page jump label */

.dgx-pagination label {
  color: var(--dgx-text-muted);
  margin-left: 10px;
}

/* Input Page Jump */

.dgx-pagination input[type="text"] {
  width: 60px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-align: center;
  transition: all .2s ease;
}

.dgx-pagination input[type="text"]:focus {
  outline: none;
  border-color: #7b5cff;
  box-shadow: 0 0 0 2px rgba(123,92,255,0.25);
}

/* Separador tipo 1 | 2 */

.dgx-pagination span {
  color: var(--dgx-text-muted);
}