/* ============================================================
   Roody — Dashboard de servidor (tema oscuro, rediseño 2026)
   Hoja de estilos autónoma, alineada con landing.css.
   ============================================================ */

:root {
  --rdy-bg: #0b0b10;
  --rdy-bg-soft: #121219;
  --rdy-surface: #16161f;
  --rdy-surface-2: #1c1c28;
  --rdy-surface-3: #22222f;
  --rdy-border: rgba(255, 255, 255, 0.07);
  --rdy-border-strong: rgba(255, 255, 255, 0.13);
  --rdy-text: #ececf1;
  --rdy-text-dim: #a0a0b0;
  --rdy-text-faint: #6e6e80;
  --rdy-primary: #7c5cff;
  --rdy-primary-2: #a855f7;
  --rdy-accent: #5865f2;
  --rdy-grad: linear-gradient(115deg, #5865f2 0%, #7c5cff 45%, #a855f7 100%);
  --rdy-radius: 16px;
  --rdy-radius-sm: 11px;
  --rdy-ok: #46d39a;
  --rdy-warn: #f5b942;
  --rdy-danger: #ff6b6b;
  --ds-sidebar-w: 264px;
}

* { box-sizing: border-box; }

body.rdy-dash {
  margin: 0;
  background: var(--rdy-bg);
  color: var(--rdy-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.rdy-dash a { text-decoration: none; color: inherit; }
body.rdy-dash img { display: block; max-width: 100%; }

/* Fondo con destellos sutiles */
body.rdy-dash::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px circle at 0% 0%, rgba(88, 101, 242, 0.13), transparent 60%),
    radial-gradient(680px circle at 100% 0%, rgba(168, 85, 247, 0.10), transparent 62%),
    var(--rdy-bg);
}

/* ---------- Botones ---------- */
.rdy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.rdy-btn:hover { transform: translateY(-2px); }
.rdy-btn-primary {
  background: var(--rdy-grad);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, 0.8);
}
.rdy-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--rdy-border-strong);
  color: var(--rdy-text);
}
.rdy-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.rdy-btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.rdy-btn-block { width: 100%; }

/* ============================================================
   Sidebar
   ============================================================ */
.ds-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--ds-sidebar-w);
  background: var(--rdy-bg-soft);
  border-right: 1px solid var(--rdy-border);
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform 0.25s ease;
}
.ds-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 22px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rdy-border);
}
.ds-sidebar-brand .logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-sidebar-brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ds-sidebar-brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rdy-text-faint);
  letter-spacing: 0.04em;
}
.ds-sidebar-close {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--rdy-text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

.ds-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--rdy-surface-3) transparent;
}
.ds-nav::-webkit-scrollbar { width: 8px; }
.ds-nav::-webkit-scrollbar-thumb {
  background: var(--rdy-surface-3);
  border-radius: 8px;
}
.ds-nav-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--rdy-text-faint);
  padding: 18px 12px 7px;
}
.ds-nav-heading:first-child { padding-top: 4px; }
.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--rdy-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.13s ease, color 0.13s ease;
}
.ds-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}
.ds-nav-link:hover { background: var(--rdy-surface); color: var(--rdy-text); }
.ds-nav-link.active {
  background: rgba(124, 92, 255, 0.14);
  color: #fff;
}
.ds-nav-link.active i { color: var(--rdy-primary-2); }

/* ============================================================
   Layout principal
   ============================================================ */
.ds-main {
  margin-left: var(--ds-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ds-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 26px;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rdy-border);
}
.ds-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--rdy-text);
  font-size: 1.3rem;
  cursor: pointer;
}
.ds-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--rdy-text-faint);
}
.ds-crumb a { color: var(--rdy-text-dim); }
.ds-crumb a:hover { color: var(--rdy-text); }
.ds-crumb .sep { opacity: 0.5; }
.ds-crumb .current { color: var(--rdy-text); font-weight: 600; }

.ds-topbar-right { margin-left: auto; }
.ds-user {
  position: relative;
}
.ds-user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  color: var(--rdy-text);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.ds-user-btn:hover { background: var(--rdy-surface-2); }
.ds-user-btn .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rdy-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
}
.ds-user-btn .av img { width: 100%; height: 100%; border-radius: 50%; }
.ds-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: var(--rdy-surface-2);
  border: 1px solid var(--rdy-border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.7);
  display: none;
}
.ds-user-menu.open { display: block; }
.ds-user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--rdy-text-dim);
}
.ds-user-menu a:hover { background: var(--rdy-surface-3); color: var(--rdy-text); }
.ds-user-menu hr { border: 0; border-top: 1px solid var(--rdy-border); margin: 5px 4px; }
.ds-user-menu a.danger { color: var(--rdy-danger); }

.ds-content {
  padding: 30px 26px 60px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   Tarjetas
   ============================================================ */
.ds-card {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 24px;
}
.ds-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 36px 0 16px;
}
.ds-section-title i { color: var(--rdy-primary-2); }
.ds-section-title:first-of-type { margin-top: 0; }

/* ---------- Cabecera del servidor ---------- */
.ds-server-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.ds-server-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 12% -40%, rgba(124, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.ds-server-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 1px solid var(--rdy-border-strong);
  object-fit: cover;
  background: var(--rdy-surface-2);
}
.ds-server-info { flex: 1; min-width: 220px; position: relative; }
.ds-server-info h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.ds-server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--rdy-text-dim);
  font-size: 0.88rem;
}
.ds-server-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ds-server-meta i { color: var(--rdy-text-faint); }
.ds-server-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  position: relative;
}
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ds-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ds-badge.online {
  background: rgba(70, 211, 154, 0.13);
  border: 1px solid rgba(70, 211, 154, 0.35);
  color: var(--rdy-ok);
}
.ds-badge.online .dot { background: var(--rdy-ok); box-shadow: 0 0 8px var(--rdy-ok); }
.ds-badge.offline {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.32);
  color: var(--rdy-danger);
}
.ds-badge.offline .dot { background: var(--rdy-danger); }
.ds-server-id {
  font-size: 0.76rem;
  color: var(--rdy-text-faint);
}

/* ---------- Tira de estadísticas ---------- */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 25px;
}
.ds-stat {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ds-stat .ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.13);
  color: var(--rdy-primary-2);
  font-size: 1.05rem;
}
.ds-stat .num { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.ds-stat .label { font-size: 0.78rem; color: var(--rdy-text-faint); }

/* ---------- Tarjeta de suscripción ---------- */
.ds-sub {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), var(--rdy-surface) 60%);
  border-color: rgba(124, 92, 255, 0.28);
}
.ds-sub-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 185, 66, 0.14);
  color: var(--rdy-warn);
  font-size: 1.3rem;
}
.ds-sub-body { flex: 1; min-width: 240px; }
.ds-sub-body h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.ds-sub-body h3 .plan { color: var(--rdy-primary-2); }
.ds-sub-body p { margin: 0; font-size: 0.86rem; color: var(--rdy-text-dim); }
.ds-sub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ds-select {
  background: var(--rdy-surface-2);
  border: 1px solid var(--rdy-border-strong);
  color: var(--rdy-text);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Grid de módulos ---------- */
.ds-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.ds-module {
  display: flex;
  flex-direction: column;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 22px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.ds-module:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--rdy-surface-2);
}
.ds-module-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 14px;
  background: rgba(124, 92, 255, 0.13);
  color: var(--rdy-primary-2);
}
.ds-module h3 { margin: 0 0 7px; font-size: 1.02rem; font-weight: 700; }
.ds-module p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--rdy-text-dim);
  flex: 1;
}
.ds-module-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--rdy-primary-2);
}
.ds-module:hover .ds-module-link { gap: 11px; }
.ds-module-link { transition: gap 0.16s ease; }

/* Estado del módulo en la cuadrícula del panel del servidor */
.ds-module { position: relative; }
.ds-module-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ds-module-badge.on {
  background: rgba(70, 211, 154, 0.15);
  color: #5fdcab;
  border: 1px solid rgba(70, 211, 154, 0.32);
}
.ds-module-badge.off {
  background: rgba(255, 255, 255, 0.05);
  color: var(--rdy-text-faint);
  border: 1px solid var(--rdy-border-strong);
}
.ds-module-badge.premium {
  background: linear-gradient(115deg, #7c5cff, #a855f7);
  color: #fff;
}
.ds-module.is-active { border-color: rgba(70, 211, 154, 0.3); }
.ds-module.is-locked { opacity: 0.85; }
.ds-module.is-locked .ds-module-ico {
  background: rgba(168, 85, 247, 0.14);
  color: #c9a6ff;
}
.ds-module.is-locked:hover { border-color: rgba(168, 85, 247, 0.5); }

/* ---------- Acciones rápidas ---------- */
.ds-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.ds-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius-sm);
  color: var(--rdy-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ds-action:hover { border-color: rgba(124, 92, 255, 0.45); background: var(--rdy-surface-2); }
.ds-action i {
  width: 20px;
  text-align: center;
  color: var(--rdy-primary-2);
}

/* ---------- Estado de error ---------- */
.ds-error {
  max-width: 460px;
  margin: 90px auto;
  text-align: center;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 40px 32px;
}
.ds-error i { font-size: 2.4rem; color: var(--rdy-danger); margin-bottom: 14px; }
.ds-error h2 { margin: 0 0 8px; font-size: 1.3rem; }
.ds-error p { color: var(--rdy-text-dim); margin: 0 0 22px; }

/* ---------- Overlay móvil ---------- */
.ds-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ds-overlay.open { opacity: 1; pointer-events: auto; }

/* ============================================================
   Dashboard home — lista de servidores
   ============================================================ */
.dh-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar superior ---------- */
.dh-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rdy-border);
}
.dh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.dh-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.dh-brand .logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dh-brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dh-brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rdy-text-faint);
  letter-spacing: 0.04em;
}
.dh-nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Cabecera de bienvenida ---------- */
.dh-hero { padding: 46px 0 30px; }
.dh-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.dh-hero h1 .grad {
  background: var(--rdy-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dh-hero p { color: var(--rdy-text-dim); font-size: 1rem; margin: 0 0 22px; }
.dh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Resumen (chips de stats) ---------- */
.dh-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.dh-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius-sm);
  min-width: 170px;
  flex: 1;
}
.dh-chip .ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.13);
  color: var(--rdy-primary-2);
  font-size: 1.05rem;
}
.dh-chip .num { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.dh-chip .label { font-size: 0.78rem; color: var(--rdy-text-faint); }

/* ---------- Secciones ---------- */
.dh-section { padding: 30px 0 0; }
.dh-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.dh-section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.dh-section-head h2 i { color: var(--rdy-primary-2); }
.dh-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rdy-text-dim);
  background: var(--rdy-surface-2);
  border: 1px solid var(--rdy-border);
  padding: 3px 10px;
  border-radius: 999px;
}
.dh-search {
  margin-left: auto;
  position: relative;
}
.dh-search input {
  width: 260px;
  max-width: 100%;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border-strong);
  border-radius: 999px;
  padding: 9px 16px 9px 38px;
  color: var(--rdy-text);
  font-size: 0.88rem;
  font-family: inherit;
}
.dh-search input::placeholder { color: var(--rdy-text-faint); }
.dh-search input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.55);
}
.dh-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rdy-text-faint);
  font-size: 0.85rem;
}

/* ---------- Rejilla de servidores ---------- */
.dh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
}
.dh-card {
  display: flex;
  flex-direction: column;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  overflow: hidden;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.dh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--rdy-surface-2);
}
.dh-card-head {
  position: relative;
  height: 74px;
  background:
    radial-gradient(220px circle at 22% 120%, rgba(124, 92, 255, 0.3), transparent 70%),
    var(--rdy-surface-2);
  border-bottom: 1px solid var(--rdy-border);
}
.dh-card-icon {
  position: absolute;
  left: 20px;
  bottom: -26px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 3px solid var(--rdy-surface);
  background: var(--rdy-surface);
  object-fit: cover;
}
.dh-card.is-inactive .dh-card-icon { filter: grayscale(0.6); opacity: 0.85; }
.dh-card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.dh-card-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dh-card-status.online {
  background: rgba(70, 211, 154, 0.14);
  color: var(--rdy-ok);
}
.dh-card-status.online::before { background: var(--rdy-ok); box-shadow: 0 0 7px var(--rdy-ok); }
.dh-card-status.offline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--rdy-text-faint);
}
.dh-card-status.offline::before { background: var(--rdy-text-faint); }
.dh-card-body { padding: 36px 20px 16px; flex: 1; }
.dh-card-name {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dh-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  font-size: 0.83rem;
  color: var(--rdy-text-dim);
}
.dh-card-stats span { display: inline-flex; align-items: center; gap: 6px; }
.dh-card-stats i { color: var(--rdy-text-faint); font-size: 0.78rem; }
.dh-card-stats .premium { color: var(--rdy-warn); }
.dh-card-stats .premium i { color: var(--rdy-warn); }
.dh-card-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--rdy-border);
}
.dh-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--rdy-primary-2);
}
.dh-card.is-inactive .dh-card-cta { color: var(--rdy-text-dim); }
.dh-card:hover .dh-card-cta { gap: 12px; }
.dh-card-cta { transition: gap 0.16s ease; }

/* ---------- Estados vacíos ---------- */
.dh-empty {
  text-align: center;
  background: var(--rdy-surface);
  border: 1px dashed var(--rdy-border-strong);
  border-radius: var(--rdy-radius);
  padding: 54px 30px;
}
.dh-empty .ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.12);
  color: var(--rdy-primary-2);
  font-size: 1.6rem;
}
.dh-empty h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; }
.dh-empty p { color: var(--rdy-text-dim); margin: 0 0 22px; }
.dh-grid-empty {
  display: none;
  text-align: center;
  color: var(--rdy-text-faint);
  font-size: 0.9rem;
  padding: 30px;
}

/* ---------- Acciones rápidas ---------- */
.dh-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.dh-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.dh-action:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--rdy-surface-2);
}
.dh-action .ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.13);
  color: var(--rdy-primary-2);
  font-size: 1.1rem;
}
.dh-action h3 { margin: 0 0 3px; font-size: 0.95rem; font-weight: 700; }
.dh-action p { margin: 0; font-size: 0.81rem; color: var(--rdy-text-dim); line-height: 1.45; }

/* ---------- Footer ---------- */
.dh-footer {
  margin-top: 60px;
  border-top: 1px solid var(--rdy-border);
  background: var(--rdy-bg-soft);
}
.dh-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 0;
  font-size: 0.86rem;
  color: var(--rdy-text-faint);
}
.dh-footer-inner a { color: var(--rdy-text-dim); margin-left: 18px; }
.dh-footer-inner a:first-child { margin-left: 0; }
.dh-footer-inner a:hover { color: var(--rdy-text); }

/* ---------- Notificación (auto-refresh) ---------- */
.dh-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--rdy-grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 14px 34px -12px rgba(124, 92, 255, 0.8);
  animation: dh-slidein 0.3s ease;
}
@keyframes dh-slidein {
  from { transform: translateX(420px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .ds-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .ds-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }
  .ds-sidebar.open { transform: translateX(0); }
  .ds-sidebar-close { display: block; }
  .ds-main { margin-left: 0; }
  .ds-burger { display: block; }
}
@media (max-width: 720px) {
  .dh-section-head { flex-wrap: wrap; }
  .dh-search { margin-left: 0; width: 100%; order: 3; }
  .dh-search input { width: 100%; }
}
@media (max-width: 620px) {
  .ds-content { padding: 22px 16px 50px; }
  .ds-topbar { padding: 0 16px; }
  .ds-stats { grid-template-columns: 1fr; }
  .ds-server-side { align-items: flex-start; }
  .ds-server-head { gap: 16px; }
  .ds-crumb a span { display: none; }
  .dh-hero { padding: 32px 0 22px; }
  .dh-nav-actions .rdy-btn span { display: none; }
}
