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

/* ===== TOPBAR ===== */
.dgx-topbar {
  background: var(--dgx-bg-elevated);
  padding: 15px 25px;
  border-radius: var(--dgx-radius-md);
  margin-bottom: 25px;
  border: 1px solid var(--dgx-border);
}


/* ==========================================
   DGX TABLE (GLOBAL)
========================================== */

.dgx-table {
  width: 100%;
  border-collapse: collapse;
}

.dgx-table th,
.dgx-table td {
  padding: 12px;
  border-bottom: 1px solid var(--dgx-border);
  font-size: 13px;
}

.dgx-table th {
  text-align: left;
  color: var(--dgx-text-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

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

/* Wrapper responsive */
.dgx-table-wrapper {
  overflow-x: auto;
  margin-top: 12px
}

/* Créditos destacados dentro de tabla */
.dgx-table .dgx-credits {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ffb347;
}

span.dgx-credits [data-lucide] {
	display: flex;
    width: 18px;
    height: 18px;
    opacity: 0.7;
    margin-right: 6px;
    transition: all 0.25s ease;
}


/* Trusted highlight */
.dgx-table td:first-child {
  font-weight: 500;
}



/* ===== AUTH ===== */
.dgx-auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left,rgba(140,84,255,.15),transparent 40%),
    radial-gradient(circle at bottom right,rgba(255,51,102,.15),transparent 40%),
    var(--dgx-bg-main);
}
.dgx-auth-card {
  width: 420px;
  background: var(--dgx-bg-card);
  padding: 40px;
  border-radius: var(--dgx-radius-md);
  border: 1px solid var(--dgx-border);
  box-shadow: var(--dgx-shadow-soft);
}
.dgx-auth-card.register {
  width: 100%;
  max-width: 720px;
}
.dgx-input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: var(--dgx-radius-sm);
  border: 1px solid var(--dgx-border);
  background: var(--dgx-bg-elevated);
  color: var(--dgx-text-main);
}
.dgx-input:focus {
  outline: none;
  border-color: var(--dgx-accent-primary);
  box-shadow: var(--dgx-glow-primary);
}

/* ===== AUTH LINKS ===== */
.dgx-auth-links {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}
.dgx-auth-links a {
  position: relative;
  color: var(--dgx-text-muted);
  text-decoration: none;
  transition: .25s;
}
.dgx-auth-links a:hover {
  color: var(--dgx-accent-primary);
}
.dgx-auth-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--dgx-accent-primary);
  transition: width .3s ease;
}
.dgx-auth-links a:hover::after {
  width: 100%;
}

/* ===== PROFILE GRID ===== */
.dgx-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 40px;
}
@media (max-width:700px){
  .dgx-profile-grid {
    grid-template-columns: 1fr;
  }
}
.dgx-label {
  font-size: 13px;
  color: var(--dgx-text-muted);
  margin-bottom: 6px;
}
.dgx-value {
  font-size: 16px;
  font-weight: 500;
}

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


/* ================= BADGE ALIGNMENT ================= */



.dgx-badge {
  display:inline-flex;
  align-items:center;
  height:36px;
  width: auto;
  padding:6px 12px;
  border-radius:12px;
  font-weight:600;
  font-size:13px;
  text-decoration:none;  
  transition:all .2s ease;
  gap:6px;
}

/* hover */

.dgx-badge:hover{
  opacity: 1;	
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
}

.dgx-badge [data-lucide] {
    width: 14px;
    height: 14px;
}



.dgx-badge-icon {
  width: 28px;
  height: 28px;
  padding: 6px 12px;
  gap: 8px;  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s ease;
  margin-left:8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;  
}

.dgx-badge-icon svg {
  width: 16px;
  height: 16px;
  transition: transform .5s ease;
}

.dgx-badge-primary { background: linear-gradient(90deg,#ff005c,#ff2e82); color: white; }

.dgx-badge-secondary { background: rgba(255,255,255,0.08); color: #cfd6ff; }


.dgx-badge-online  { 
  background: rgba(34, 197, 94, 0.25);
  color: #22c55e;
  }

.dgx-badge-offline { 
    background: #3d1f24;
    color: #f87171;
 }

.dgx-badge-success { background: rgba(74,222,128,.15); color:#4ade80; }
.dgx-badge-warning { background: rgba(250,204,21,.15); color:#facc15; }

.dgx-badge-danger  { background: rgba(248,113,113,.15); color:#f87171; }
.dgx-badge-danger:hover { background: rgba(255, 70, 70, 0.25); }

.dgx-badge-neutral { background: rgba(148,163,184,.15); color:#94a3b8; }

.dgx-badge-edit { 	border: 1px solid rgba(255,46,130,0.3); }
.dgx-badge-edit:hover { background: rgba(255,46,130,0.2); }

/* Delete */
.dgx-badge-delete { background: rgba(255,60,60,0.12); color: #ff4d4d; border: 1px solid rgba(255,60,60,0.3); }

.dgx-badge-delete:hover { background: rgba(255,60,60,0.2); }

.dgx-badge-noticia { background: #2e3b78; color: #a7b8ff; }
.dgx-badge-update  { background: #264d3b; color: #62f2b0; }
.dgx-badge-patch   { background: #5b2e7a; color: #d9a7ff; }

/*- Badges HEADER GM, VIP, ADMIN -*/
.dgx-badge-admin {
  background: linear-gradient(135deg,#ff2e82,#8c00ff);
  color: #fff;
  box-shadow: 0 0 12px rgba(255,0,120,.5);
}

.dgx-badge-gm {
  background: linear-gradient(135deg,#8c54ff,#5b2eff);
  color: white;
}

.dgx-badge-vip {
  background: linear-gradient(135deg,#ffb100,#ffcc00);
  color: #1a1a1a;
  box-shadow: 0 0 12px rgba(255,165,0,.6);
}


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

/* Support Staff */
.dgx-badge-support {
  background: linear-gradient(135deg,#1e3a8a,#2563eb);
  color: #fff;
  box-shadow: 0 0 10px rgba(37,99,235,.4);
}

/* Head of Support */
.dgx-badge-head {
  background: linear-gradient(135deg,#6d28d9,#9333ea);
  color: #fff;
  box-shadow: 0 0 10px rgba(147,51,234,.4);
}



.dgx-badge-vip-warning {
  background: linear-gradient(90deg,#ff9800,#ff5722);
  color: white;
  animation: vipPulse 2s infinite;
}

@keyframes vipPulse {
  0% { box-shadow: 0 0 6px rgba(255,165,0,.6); }
  50% { box-shadow: 0 0 18px rgba(255,165,0,1); }
  100% { box-shadow: 0 0 6px rgba(255,165,0,.6); }
}

.dgx-badge-vip:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 12px rgba(255,174,0,0.9),
    0 0 25px rgba(255,140,0,0.5);
}


/*----------------------------------*/

.dgx-character-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dgx-gear-toggle {
  width: 32px;
  height: 32px;

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

  border-radius: 10px;
  cursor: pointer;

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

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

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

.dgx-gear-toggle.active span {
  transform: rotate(90deg);
  transition: transform .2s ease;
}






/* ===== HEADER PRO ===== */
.dgx-header-pro {
  backdrop-filter: blur(12px);
  background: rgba(18,18,28,.75);
  border-bottom: 1px solid var(--dgx-border);
  padding: 14px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.dgx-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dgx-header-left {
  display: flex;
  align-items: center;
  gap: 25px;
}
.dgx-logo {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--dgx-text-main);
}

/* ===== GUEST ===== */
.dgx-welcome-guest {
  font-size: 14px;
  color: var(--dgx-text-muted);
  display: flex;
  align-items: center;
  gap: 18px;
}
.dgx-header-links a {
  color: var(--dgx-accent-primary);
  font-weight: 500;
  text-decoration: none;
  transition: .25s;
}
.dgx-header-links a:hover {
  text-shadow: 0 0 8px var(--dgx-accent-primary);
}
.dgx-online-counter {
  font-size: 13px;
  color: #4ade80;
}



/* ===== USER DROPDOWN ===== */

.dgx-user-dropdown.active .dgx-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

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

.dgx-user-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dgx-user-dropdown.active .dgx-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.dgx-user-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--dgx-text-main);
  text-decoration: none;
}
.dgx-user-menu a:hover {
  background: var(--dgx-bg-elevated);
}


/* ===== NOTIFICATION ===== */
.dgx-icon-btn {
  position: relative;
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease;
}
.dgx-icon-btn:hover {
  transform: scale(1.1);
}
.dgx-notify-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff3366;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}


/* PASSWORD WRAPPER */

.dgx-password-wrapper {
  position: relative;
  width: 100%;
}

.dgx-password-wrapper .dgx-input {
  padding-right: 80px;
}

.dgx-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 13px;
  color: var(--dgx-text-muted);
  cursor: pointer;
  transition: var(--dgx-transition);
}

.dgx-password-toggle:hover {
  color: var(--dgx-accent-primary);
}

/* CAPTCHA */

.dgx-captcha-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.dgx-captcha-label {
  font-size: 14px;
  color: var(--dgx-text-muted);
}

.dgx-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dgx-captcha-image img {
  border-radius: var(--dgx-radius-sm);
  border: 1px solid var(--dgx-border);
  display: block;
}

.dgx-captcha-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dgx-border);
  background: var(--dgx-bg-elevated);
  color: var(--dgx-text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: var(--dgx-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dgx-captcha-refresh-btn:hover {
  color: var(--dgx-accent-primary);
  border-color: var(--dgx-accent-primary);
}

/* REGISTER INFO LIST */

.dgx-info-list {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.dgx-info-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--dgx-text-muted);
  font-size: 14px;
}

.dgx-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dgx-accent-primary);
}

/* INLINE FIELDS (GENDER + BIRTHDATE) */

.dgx-inline-field {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  height: 50px;
}

.dgx-inline-label {
  min-width: 140px;
  font-size: 14px;
  color: var(--dgx-text-muted);
  height: 20px;
}

.dgx-gender-group {
  display: flex;
  gap: 25px;
}

.dgx-gender-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dgx-birthdate-wrapper select {
  padding: 8px 10px;
  border-radius: var(--dgx-radius-sm);
  border: 1px solid var(--dgx-border);
  background: var(--dgx-bg-elevated);
  color: var(--dgx-text-main);
  margin-right: 8px;
}

/* ===== TOS PAGE ===== */

.dgx-tos-card {
  max-width: 900px;
  margin: 0 auto;
}

.dgx-tos-content {
  background: var(--dgx-bg-elevated);
  border: 1px solid var(--dgx-border);
  padding: 25px;
  border-radius: var(--dgx-radius-sm);
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.7;
  font-size: 14px;
  color: var(--dgx-text-muted);
}

.dgx-tos-content::-webkit-scrollbar {
  width: 8px;
}

.dgx-tos-content::-webkit-scrollbar-thumb {
  background: var(--dgx-accent-primary);
  border-radius: 10px;
}

/* HEADER LAYOUT */

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


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

.dgx-guest-area {
  font-size: 14px;
  color: var(--dgx-text-muted);
}

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


.dgx-status-empty {
  color: #facc15;
}


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

.dgx-user-menu {
  position: absolute;
  top: 45px;
  left: 0;
  background: var(--dgx-bg-card);
  border: 1px solid var(--dgx-border);
  border-radius: var(--dgx-radius-md);
  min-width: 180px;
  display: none;
  box-shadow: var(--dgx-shadow-soft);
  z-index: 1000;
}

.dgx-user-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--dgx-text-main);
}

.dgx-user-menu a:hover {
  background: var(--dgx-bg-elevated);
}

/* ===== USER INLINE HEADER PRO ===== */

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


/* Info block */

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

.dgx-user-greeting {
  font-size: 14px;
  color: var(--dgx-text-muted);
}

.dgx-user-links {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dgx-user-links a {
  text-decoration: none;
  color: var(--dgx-accent-primary);
  opacity: 0.85;
  transition: all 0.2s ease;
}

.dgx-user-links a:hover {
  opacity: 1;
  text-shadow: 0 0 6px var(--dgx-accent-primary);
}

/* Economy pills */

.dgx-user-economy {
  display: flex;
  gap: 13px;
  margin-left: 8px;
}

.dgx-economy-pill {
  padding: 6px 14px;
  background: var(--dgx-bg-elevated);
  border: 1px solid var(--dgx-border);
  border-radius: 999px;
  font-size: 13px;
  transition: all 0.25s ease;
}

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

.dgx-confirm-card {
  text-align: center;
}

.dgx-confirm-message {
  margin: 20px 0 25px 0;
  font-size: 15px;
  color: var(--dgx-text-muted);
  line-height: 1.6;
}


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

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

.dgx-badge-admin {
  background: linear-gradient(135deg,#ff3366,#ff0055);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 0 10px rgba(255,51,102,.5);
  
  display: inline-flex;      /* 👈 importante */
  align-items: center;       /* centra contenido interno */
  justify-content: center;
  height: 32px;              /* misma altura visual que pills */
  padding: 5px 12px;  
}

.dgx-badge-gm {
  background: linear-gradient(135deg,#8c54ff,#5b2eff);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  
  display: inline-flex;      /* 👈 importante */
  align-items: center;       /* centra contenido interno */
  justify-content: center;
  height: 32px;              /* misma altura visual que pills */
  padding: 5px 12px;  
}

/* ===== VIP BADGE PRO ===== */

.dgx-badge-vip {
  background: linear-gradient(
    135deg,
    #ffb100,
    #ffcc00
  );
  color: #1a1a1a;
  font-weight: 600;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.5px;
  position: relative;
  box-shadow: 0 0 12px rgba(255,165,0,.6);
  transition: all 0.25s ease;
  
  display: inline-flex;      /* 👈 importante */
  align-items: center;       /* centra contenido interno */
  justify-content: center;
  height: 32px;              /* misma altura visual que pills */
  padding: 5px 12px; 
}

.dgx-badge-vip:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 12px rgba(255, 174, 0, 0.9),
    0 0 25px rgba(255, 140, 0, 0.5);
}

.dgx-badge-vip::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.2)
  );
  z-index: -1;
  animation: vipShine 3s linear infinite;
}

.dgx-badge-vip-warning {
  animation: vipPulse 2s infinite;
}

@keyframes vipPulse {
  0% { box-shadow: 0 0 6px rgba(255,165,0,.6); }
  50% { box-shadow: 0 0 18px rgba(255,165,0,1); }
  100% { box-shadow: 0 0 6px rgba(255,165,0,.6); }
}


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

.dgx-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px 22px;
  margin: 20px 0 25px 0;
  background: var(--dgx-bg-elevated);
  border: 1px solid var(--dgx-border);
  border-radius: var(--dgx-radius-md);
}

/* Links base */
.dgx-submenu a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--dgx-text-muted);
  padding-bottom: 6px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;  
}

/* Hover */
.dgx-submenu a:hover {
  color: var(--dgx-accent-primary);
}

/* Active state */
.dgx-submenu a.active {
  color: var(--dgx-accent-primary);
}


.dgx-submenu a:hover::after {
  width: 100%;
}

.dgx-submenu a.active::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .dgx-submenu {
    gap: 14px;
    padding: 12px 16px;
  }

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



.dgx-submenu a svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  opacity: 0.7;
  transition: all 0.25s ease;
}

.dgx-submenu a:hover svg,
.dgx-submenu a.active svg {
  opacity: 1;
  stroke: var(--dgx-accent-primary);
}

svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

/* ===== LUCIDE ICONS ===== */

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  vertical-align: middle;
  display: inline-block;
}

.dgx-submenu svg,
.dgx-user-links svg {
  margin-right: 6px;
}

.dgx-header-left svg {
	margin:0px;
}

.dgx-user-links svg {
  width: 16px;
  height: 16px;
}

[data-lucide] {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.dgx-topbar {
  background: linear-gradient(90deg, #111528, #1a2038);
  padding: 16px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
}


.dgx-stat-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8b93a7;
  margin-bottom: 10px;
}

.dgx-stat-value {
  font-size: 2rem;
  font-weight: 600;
}

.dgx-stat-small {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== RECENT CHARACTERS ===== */

.dgx-stat-small {
  font-size: 14px;
}

.dgx-recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}





.dgx-recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.dgx-recent-name {
  font-weight: 500;
  color: var(--dgx-text-main);
}

.dgx-recent-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}



.dgx-recent-left {
  display: flex;
  flex-direction: column;
}

.dgx-recent-name {
  font-weight: 600;
  font-size: 14px;
}

.dgx-recent-meta {
  font-size: 12px;
  opacity: 0.6;
}

.dgx-recent-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.dgx-recent-status.online {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

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

.dgx-recent-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.dgx-recent-avatar img {
  width: 48px;
  height: 48px;
}

.dgx-recent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dgx-recent-name {
  font-weight: 600;
  font-size: 14px;
}

.dgx-recent-meta {
  font-size: 12px;
  opacity: 0.7;
}

.dgx-recent-map {
  font-size: 11px;
  opacity: 0.5;
}

.dgx-recent-status {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.dgx-recent-status.online {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

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

.dgx-char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.dgx-char-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}




/* Sprites divididos M/F */
.dgx-job-sprite.split {
  background-size: 200% auto;
}

/* Sprites individuales */
.dgx-job-sprite.single {
  background-size: contain;
}


.dgx-recent-guild {
  font-size: 0.75rem;
  color: #9ca3af;
  opacity: 0.85;
}

.dgx-recent-guild {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  margin-top: 4px;
}

.dgx-guild-emblem {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  margin-right: 6px;
  vertical-align: middle;
}

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

.dgx-news-item:last-child {
  border-bottom: none;
}

.dgx-ranking-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.dgx-ranking-position {
  font-weight: bold;
}

.dgx-discord-card {
  text-align: center;
}

.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);
}

.dgx-form-card {
  padding: 30px;
}

.dgx-form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.dgx-form-group label {
  margin-bottom: 8px;
  font-weight: 600;
}

.dgx-input,
.dgx-textarea {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  transition: 0.2s ease;
}

.dgx-input:focus,
.dgx-textarea:focus {
  border-color: #5865F2;
  outline: none;
}

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

.dgx-form-actions {
  margin-top: 20px;
}

.dgx-btn-primary {
  background: linear-gradient(135deg, #5865F2, #7b8cff);
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

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


/* ROW estilo moderno */

.dgx-page-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10px;
}

.dgx-page-info {
  display: flex;
  flex-direction: column;
}

.dgx-page-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.dgx-page-title:hover {
  color: #ff2e82;
}

.dgx-page-path {
  font-size: 12px;
  color: #7c86b2;
  margin-top: 4px;
}


.dgx-link-danger {
  color: #ff4d6d;
}

.dgx-link-danger:hover {
  color: #ff6f8f;
}

/* Divider */

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

/* ==========================================
   EMPTY STATE INLINE (ALIGNED)
========================================== */

.dgx-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 18px;
  padding: 22px 24px;

  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 14px;

  background: rgba(255,255,255,.02);

  font-size: 15px;
  font-weight: 500;
  opacity: .75;
}

.dgx-empty-state svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  opacity: .6;
}





.dgx-form-vertical {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dgx-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dgx-label {
    font-size: 14px;
    font-weight: 600;
    color: #9aa4c6;
}

.dgx-textarea {
    width: 100%;
    padding: 12px 14px;
    background: #12182c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
}

.dgx-textarea:focus {
    outline: none;
    border-color: #ff2e82;
}

.dgx-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}



.dgx-page-content {
  line-height: 1.7;
  font-size: 15px;
  color: #d6dcff;
}

.dgx-page-content h1,
.dgx-page-content h2,
.dgx-page-content h3 {
  margin-top: 25px;
  margin-bottom: 12px;
}

.dgx-page-content a {
  color: #ff2e82;
}

.dgx-page-content img {
  max-width: 100%;
  border-radius: 12px;
}


/* Neutral (volver) */
.dgx-badge-neutral {
  background: rgba(255,255,255,0.05);
  color: #9aa4c6;
  border: 1px solid rgba(255,255,255,0.08);
}

.dgx-badge-neutral:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.dgx-badge-back {
  background: rgba(255,255,255,0.06);
  color: #9aa4c6;
}

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

.dgx-badge-edit {
  background: rgba(255, 0, 92, 0.15);
  color: #ff2e82;
}

.dgx-badge-edit:hover {
  background: rgba(255, 0, 92, 0.25);
  color: #fff;
}



/* ===== ARTÍCULO ESTILO EDITORIAL ===== */

.dgx-article {
  font-size: 15.5px;
  line-height: 1.75;
  color: #cfd6ff;
}

.dgx-article p {
  margin-bottom: 16px;
}

.dgx-article h1,
.dgx-article h2,
.dgx-article h3,
.dgx-article h4 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-weight: 600;
  color: #ffffff;
}

.dgx-article h1 {
  font-size: 24px;
}

.dgx-article h2 {
  font-size: 20px;
}

.dgx-article h3 {
  font-size: 18px;
}

.dgx-article ul,
.dgx-article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.dgx-article li {
  margin-bottom: 6px;
}

.dgx-article a {
  color: #ff2e82;
  text-decoration: none;
  transition: 0.2s ease;
}

.dgx-article a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.dgx-article blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid #ff2e82;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  color: #b8c0ff;
}

.dgx-article img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================
   DGX DateTime Select Style
========================= */

.dgx-datetime-wrapper select {

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all .2s ease;
}

.dgx-datetime-wrapper select:hover {
  border-color: rgba(255,255,255,0.2);
}

.dgx-datetime-wrapper select:focus {
  border-color: #ff2e82;
  box-shadow: 0 0 0 2px rgba(255,46,130,.25);
}

.dgx-datetime-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}