/* =============================================
   CHOWBOX STAFF PANEL — styles.css
   Theme: Dark Purple / Violet Glow
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* ---- VARIABLES ---- */
:root {
  --bg-deep:       #08060f;
  --bg-dark:       #0d0a1a;
  --bg-card:       #110d22;
  --bg-card2:      #160f2c;
  --bg-sidebar:    #0c0918;
  --border:        rgba(140, 80, 255, 0.18);
  --border-glow:   rgba(160, 80, 255, 0.5);

  --purple-1:      #7c3aed;
  --purple-2:      #9333ea;
  --purple-3:      #a855f7;
  --purple-4:      #c084fc;
  --violet:        #8b5cf6;
  --fuchsia:       #d946ef;
  --indigo:        #6366f1;

  --glow-soft:     0 0 20px rgba(140, 80, 255, 0.3);
  --glow-mid:      0 0 30px rgba(140, 80, 255, 0.5);
  --glow-strong:   0 0 50px rgba(140, 80, 255, 0.7);

  --text-primary:  #f1eeff;
  --text-secondary:#b09dd8;
  --text-muted:    #6b5a8e;

  --sidebar-w:     240px;
  --sidebar-w-sm:  68px;
  --topbar-h:      60px;

  --font-main: 'Exo 2', sans-serif;
  --font-display: 'Rajdhani', sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  display: flex;
  min-height: 100vh;
  position: relative;
  background: url('image/background.jpg') center center / cover no-repeat;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 15, 0.72);
  z-index: 0;
}

/* Particles canvas */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-3), transparent);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%  { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.2; }
  100%{ transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* Left panel */
.login-left {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.1) 0%, transparent 60%);
}

.login-card {
  background: rgba(17, 13, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glow-soft), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: slideInLeft 0.6s ease both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--purple-4);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  background: rgba(140,80,255,0.07);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple-3);
  box-shadow: 0 0 6px var(--purple-3);
  animation: blink 1.5s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.login-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.login-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.field-group {
  margin-bottom: 1.2rem;
}
.field-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-wrapper input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px 13px 42px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.input-wrapper input::placeholder { color: var(--text-muted); }
.input-wrapper input:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 3px rgba(147,51,234,0.2), var(--glow-soft);
  background: rgba(140,80,255,0.07);
}
.eye-btn {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.eye-btn:hover { color: var(--purple-3); }
.eye-btn i { width: 16px; height: 16px; }

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #f87171;
  margin-bottom: 1rem;
}
.login-error i { width: 16px; height: 16px; flex-shrink: 0; }

.login-btn {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2), var(--fuchsia));
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(147,51,234,0.5);
  margin-top: 0.5rem;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(147,51,234,0.7), var(--glow-mid);
}
.login-btn:active { transform: translateY(0); }
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-15deg);
  animation: shine 3s ease infinite;
}
@keyframes shine {
  0%  { left: -100%; }
  40% { left: 150%; }
  100%{ left: 150%; }
}
.btn-icon { width: 18px; height: 18px; }
.login-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Right panel */
.login-right {
  flex: 0 0 45%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  border-left: 1px solid var(--border);
  overflow: hidden;
}
.login-right::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147,51,234,0.25), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.login-brand {
  text-align: center;
  position: relative;
  animation: slideInRight 0.6s 0.2s ease both;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.brand-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--purple-3);
  margin-bottom: 0.8rem;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.glow-text {
  color: var(--purple-3);
  text-shadow: 0 0 20px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.4);
  animation: textPulse 3s ease infinite;
}
@keyframes textPulse {
  0%,100% { text-shadow: 0 0 20px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.4); }
  50%     { text-shadow: 0 0 30px rgba(168,85,247,1),   0 0 60px rgba(168,85,247,0.6); }
}
.brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 260px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Logo container */
.logo-container {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  animation: ringPulse 3s ease infinite;
}
.ring1 { width: 100%; height: 100%; animation-delay: 0s; }
.ring2 { width: 130%; height: 130%; animation-delay: 1s; opacity: 0.5; }
.ring3 { width: 160%; height: 160%; animation-delay: 2s; opacity: 0.25; }
@keyframes ringPulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%     { opacity: 0.8; transform: scale(1.03); }
}
.brand-logo {
  width: 120px; height: 120px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(168,85,247,0.85));
  animation: logoPulse 2.5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% {
    filter: drop-shadow(0 0 12px rgba(168,85,247,0.7)) drop-shadow(0 0 25px rgba(168,85,247,0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(168,85,247,1)) drop-shadow(0 0 45px rgba(168,85,247,0.6));
    transform: scale(1.06);
  }
}


/* Server stats */
.server-stats {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}
.stat { text-align: center; padding: 0 1.5rem; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--purple-3);
  text-shadow: var(--glow-soft);
}
.stat-lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.stat-div {
  width: 1px; height: 40px;
  background: var(--border);
}

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */
.dash-page {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(124,58,237,0.08) 0%,
    transparent 40%,
    rgba(124,58,237,0.04) 100%
  );
  pointer-events: none;
}
.sidebar.collapsed { width: var(--sidebar-w-sm); }

/* Sidebar header */
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  min-height: 68px;
  position: relative;
}
.sb-logo {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-1), var(--fuchsia));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(147,51,234,0.5);
}
.sb-logo-img { width: 100%; height: 100%; object-fit: contain; }
.sb-logo-fallback {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  color: #fff;
}
.sb-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  transition: opacity 0.2s;
  letter-spacing: 0.05em;
}
.sidebar.collapsed .sb-title { opacity: 0; pointer-events: none; }
.sb-toggle { display: none; } /* ya no se usa */

/* Botón colapsar como ítem nav */
.sb-collapse-btn {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-main);
}
.sb-collapse-btn:hover { color: var(--purple-3); background: rgba(124,58,237,0.08); }
.sb-collapse-btn .sb-icon { color: var(--text-muted); transition: color 0.2s; }
.sb-collapse-btn:hover .sb-icon { color: var(--purple-3); }

/* Cuando colapsado, centrar el ícono igual que los demás ítems */
.sidebar.collapsed .sb-collapse-btn { justify-content: center; }
.sidebar.collapsed .sb-footer { padding-bottom: 14px; }

/* Sidebar nav */
.sb-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-track { background: transparent; }
.sb-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.sb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.sb-item:hover {
  background: rgba(140,80,255,0.1);
  color: var(--text-primary);
}
.sb-item.active {
  background: rgba(124,58,237,0.2);
  color: var(--purple-4);
  border: 1px solid rgba(124,58,237,0.3);
}
.sb-item.active .sb-glow {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--purple-3);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 10px var(--purple-3);
}
.sb-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sb-label { flex: 1; transition: opacity 0.2s; }
.sidebar.collapsed .sb-label { opacity: 0; pointer-events: none; }
.sb-chevron { width: 14px; height: 14px; transition: transform 0.25s; flex-shrink: 0; }
.sidebar.collapsed .sb-chevron { opacity: 0; }
.sb-chevron.open { transform: rotate(180deg); }

/* Sub-menus */
.sb-group { display: flex; flex-direction: column; }
.sb-has-sub { text-align: left; }
.sb-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 8px;
}
.sb-sub.open { max-height: 300px; }
.sidebar.collapsed .sb-sub { display: none; }
.sb-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
  margin-top: 2px;
}
.sb-sub-item:hover {
  background: rgba(140,80,255,0.1);
  color: var(--purple-4);
}
.sb-sub-item.active {
  color: var(--purple-3);
  background: rgba(124,58,237,0.15);
}
.sb-sub-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Sidebar footer */
.sb-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  min-height: 62px;
}

/* Banner de fondo en el footer */
.sb-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.sb-banner.has-banner {
  opacity: 1;
}
/* Overlay oscuro para que el texto sea legible */
.sb-banner.has-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,6,15,0.82) 0%, rgba(8,6,15,0.55) 100%);
}

.sb-footer > .sb-user,
.sb-footer > .sb-logout {
  position: relative;
  z-index: 1;
}

.sb-user { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; }
.sb-avatar {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-1), var(--fuchsia));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sb-user-info { overflow: hidden; transition: opacity 0.2s; }
.sidebar.collapsed .sb-user-info { opacity: 0; }
.sb-user-name { display: block; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.sb-user-role { display: block; font-size: 0.7rem; color: var(--purple-3); white-space: nowrap; }
.sb-logout {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}
.sb-logout:hover { color: #ef4444; border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.1); }
.sb-logout i { width: 15px; height: 15px; }

/* ---- MAIN AREA ---- */
.dash-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.sidebar.collapsed ~ .dash-main { margin-left: var(--sidebar-w-sm); }

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: rgba(13,10,26,0.9);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.mobile-menu-btn {
  display: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s;
}
.mobile-menu-btn:hover { color: var(--purple-3); }
.mobile-menu-btn i { width: 22px; height: 22px; }
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.topbar-breadcrumb i { width: 18px; height: 18px; color: var(--purple-3); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(140,80,255,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--purple-4);
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: blink 1.5s infinite;
}
.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.notif-btn:hover { border-color: var(--purple-3); color: var(--purple-3); }
.notif-btn i { width: 18px; height: 18px; }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fuchsia);
  box-shadow: 0 0 6px var(--fuchsia);
}

/* ---- PAGES ---- */
.page {
  display: none;
  padding: 2rem;
  flex: 1;
  animation: fadeIn 0.35s ease;
}
.page.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}
.hl {
  color: var(--purple-3);
  text-shadow: 0 0 20px rgba(168,85,247,0.5);
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.stat-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.07), transparent);
  pointer-events: none;
}
.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon i { width: 22px; height: 22px; color: #fff; }
.stat-card-icon.purple { background: rgba(124,58,237,0.3); box-shadow: 0 0 15px rgba(124,58,237,0.3); }
.stat-card-icon.violet { background: rgba(139,92,246,0.3); box-shadow: 0 0 15px rgba(139,92,246,0.3); }
.stat-card-icon.indigo { background: rgba(99,102,241,0.3); box-shadow: 0 0 15px rgba(99,102,241,0.3); }
.stat-card-icon.fuchsia{ background: rgba(217,70,239,0.3); box-shadow: 0 0 15px rgba(217,70,239,0.3); }
.stat-card-info { flex: 1; }
.big-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.big-lbl {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.stat-trend {
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.stat-trend i { width: 12px; height: 12px; }
.stat-trend.up    { color: #22c55e; }
.stat-trend.down  { color: #ef4444; }
.stat-trend.neutral { color: var(--text-muted); }

/* 2-col grid */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Glass cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.25s;
}
.glass-card:hover { border-color: var(--border-glow); }
.mb-4 { margin-bottom: 1.5rem; }

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.card-title i { width: 18px; height: 18px; color: var(--purple-3); }

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.act-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  font-size: 0.83rem;
  transition: border-color 0.2s;
}
.act-item:hover { border-color: var(--border-glow); }
.act-item i { width: 16px; height: 16px; flex-shrink: 0; }
.act-item div { flex: 1; color: var(--text-secondary); }
.act-item div strong { color: var(--text-primary); }
.act-item div em { color: var(--purple-4); font-style: normal; }
.act-item span { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.act-ban  i { color: #ef4444; }
.act-mute i { color: #f59e0b; }
.act-join i { color: #22c55e; }
.act-ss   i { color: var(--purple-3); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1rem 0.5rem;
  border-radius: 10px;
  background: rgba(140,80,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s;
}
.qa-btn i { width: 20px; height: 20px; }
.qa-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple-3);
  color: var(--purple-4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

/* ---- RULES LIST ---- */
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}
.rule-item:hover { border-color: var(--border-glow); }
.rule-item.warning { border-color: rgba(245,158,11,0.2); background: rgba(245,158,11,0.04); }
.rule-item.danger  { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.05); }
.rule-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(140,80,255,0.15);
  color: var(--purple-3);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rule-item div { flex: 1; color: var(--text-secondary); }
.rule-item div strong { color: var(--text-primary); }
.rule-dur {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-4);
  white-space: nowrap;
  background: rgba(140,80,255,0.1);
  padding: 3px 10px;
  border-radius: 5px;
}

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.styled-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.styled-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(140,80,255,0.07);
  color: var(--text-secondary);
}
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:hover td { background: rgba(140,80,255,0.04); }
.player-name { color: var(--text-primary); font-weight: 500; }
.badge-dur {
  background: rgba(140,80,255,0.15);
  color: var(--purple-4);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
}
.badge-dur.perm { background: rgba(239,68,68,0.15); color: #f87171; }
.tbl-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tbl-btn i { width: 14px; height: 14px; }
.tbl-btn.red { color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.tbl-btn.red:hover { background: rgba(239,68,68,0.15); }

/* ---- RANKS ---- */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.rank-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.rank-owner   { border-color: rgba(250,204,21,0.3); }
.rank-owner::before { background: linear-gradient(90deg, #facc15, #f59e0b); }
.rank-headmin { border-color: rgba(168,85,247,0.4); }
.rank-headmin::before { background: linear-gradient(90deg, var(--purple-2), var(--fuchsia)); }
.rank-admin   { border-color: rgba(99,102,241,0.3); }
.rank-admin::before { background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.rank-mod     { border-color: rgba(59,130,246,0.3); }
.rank-mod::before { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.rank-helper  { border-color: rgba(34,197,94,0.3); }
.rank-helper::before { background: linear-gradient(90deg, #22c55e, #10b981); }
.rank-jadmin  { border-color: rgba(99,102,241,0.35); }
.rank-jadmin::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.rank-highstaff { border-color: rgba(234,179,8,0.35); }
.rank-highstaff::before { background: linear-gradient(90deg, #eab308, #f97316); }
.rank-highstaff .rank-badge { background: rgba(234,179,8,0.1); }
.rank-highstaff .rank-badge i { color: #eab308; }
.rank-jadmin .rank-badge i { color: #818cf8; }
.rank-card:hover { transform: translateY(-3px); box-shadow: var(--glow-soft); }
.rank-badge {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(140,80,255,0.12);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.rank-owner   .rank-badge { background: rgba(250,204,21,0.1); }
.rank-headmin .rank-badge { background: rgba(168,85,247,0.15); }
.rank-badge i { width: 20px; height: 20px; color: var(--purple-3); }
.rank-owner .rank-badge i { color: #facc15; }
.rank-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rank-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.rank-perms { display: flex; flex-wrap: wrap; gap: 5px; }
.rank-perms span {
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(140,80,255,0.12);
  color: var(--purple-4);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.rank-members { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mini-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple-1), var(--fuchsia));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}
.rank-members span { font-size: 0.78rem; color: var(--text-muted); }

/* ---- COMMANDS ---- */
.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s;
}
.cmd-search-bar:focus-within { border-color: var(--purple-3); box-shadow: 0 0 0 3px rgba(147,51,234,0.15); }
.cmd-search-bar i { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.cmd-search-bar input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
}
.cmd-search-bar input::placeholder { color: var(--text-muted); }

.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cmd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transition: all 0.2s;
  position: relative;
}
.cmd-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.cmd-name {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--purple-4);
  font-weight: 700;
  margin-bottom: 5px;
}
.cmd-name em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 400;
}
.cmd-desc { font-size: 0.82rem; color: var(--text-secondary); }
.cmd-rank {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(140,80,255,0.12);
  color: var(--purple-3);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---- TEMPLATES ---- */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}
.tpl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}
.tpl-card:hover { border-color: var(--border-glow); }
.tpl-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.2rem;
  background: rgba(140,80,255,0.06);
  border-bottom: 1px solid var(--border);
}
.tpl-header i { width: 18px; height: 18px; color: var(--purple-3); }
.tpl-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.tpl-body {
  padding: 1rem 1.2rem;
}
.tpl-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.tpl-body code strong { color: var(--purple-4); }
.tpl-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 1.2rem 1rem;
  padding: 7px 14px;
  border-radius: 7px;
  background: rgba(140,80,255,0.1);
  border: 1px solid var(--border);
  color: var(--purple-4);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.tpl-copy:hover { background: rgba(124,58,237,0.25); border-color: var(--purple-3); }
.tpl-copy i { width: 14px; height: 14px; }

/* ---- ILEGALES ---- */
.illegal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.illegal-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.illegal-cat:hover { border-color: var(--border-glow); }
.illegal-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.2rem;
  background: rgba(140,80,255,0.06);
  border-bottom: 1px solid var(--border);
}
.illegal-cat-header.danger  { background: rgba(239,68,68,0.08); }
.illegal-cat-header.warning { background: rgba(245,158,11,0.08); }
.illegal-cat-header.purple  { background: rgba(168,85,247,0.1); }
.illegal-cat-header i { width: 18px; height: 18px; color: var(--purple-3); }
.illegal-cat-header.danger  i { color: #f87171; }
.illegal-cat-header.warning i { color: #fbbf24; }
.illegal-cat-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.illegal-cat ul { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.illegal-cat li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.illegal-cat li:hover { background: rgba(140,80,255,0.06); }
.illegal-cat li i { width: 14px; height: 14px; color: #ef4444; flex-shrink: 0; margin-top: 2px; }
.illegal-cat li strong { color: var(--text-primary); }

/* ---- SS STEPS ---- */
.ss-steps { display: flex; flex-direction: column; gap: 0; }
.ss-step {
  display: flex;
  gap: 1.5rem;
  padding: 0 0 2rem 0;
  position: relative;
}
.ss-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 50px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-2), transparent);
}
.ss-step:last-child::before { display: none; }
.ss-step-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(124,58,237,0.5);
}
.ss-step-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  flex: 1;
  transition: border-color 0.2s;
}
.ss-step-content:hover { border-color: var(--border-glow); }
.ss-step-content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.ss-step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.ss-step-content p strong { color: var(--purple-4); }
.ss-step-content code {
  font-family: 'Courier New', monospace;
  background: rgba(140,80,255,0.1);
  color: var(--purple-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}
.ss-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ss-tools span {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(140,80,255,0.1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--purple-4);
}
.ss-tools span i { width: 13px; height: 13px; }

/* ---- MOBILE BOTTOM NAV ---- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.2s;
  flex: 1;
}
.mob-nav-item i { width: 20px; height: 20px; }
.mob-nav-item.active { color: var(--purple-3); }
.mobile-bottom-nav { display: none; }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card2);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.88rem;
  color: var(--purple-4);
  box-shadow: var(--glow-mid);
  z-index: 999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Login */
  .login-page { flex-direction: column; }
  .login-left { flex: none; width: 100%; order: 2; }
  .login-right {
    flex: none; width: 100%; order: 1;
    padding: 2rem 2rem 1rem;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  .brand-title { font-size: 2rem; }
  .server-stats { display: none; }

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w) !important;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar .sb-title { opacity: 1 !important; }
  .sidebar .sb-label { opacity: 1 !important; }
  .sidebar .sb-chevron { opacity: 1 !important; }
  .sidebar .sb-user-info { opacity: 1 !important; }
  .sb-toggle { display: none; }

  /* Main */
  .dash-main { margin-left: 0 !important; padding-bottom: 70px; }
  .mobile-menu-btn { display: flex; }
  .mobile-bottom-nav { display: flex; }
  .page { padding: 1.2rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
}
/* =============================================
   MANUAL DEL STAFF — styles
   ============================================= */
.manual-section {
  margin-top: 0;
}

.manual-header-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.25) 0%, rgba(10,6,30,0.82) 50%, rgba(109,40,217,0.25) 100%);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.manual-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('image/background.jpg') center/cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.manual-logo-wrap {
  flex-shrink: 0;
}

.manual-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(220,38,38,0.6));
}

.manual-header-text {
  flex: 1;
}

.manual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #f87171;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.5rem;
}

.manual-badge svg { width: 12px; height: 12px; }

.manual-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.manual-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.manual-confidential-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.manual-confidential-badge svg { width: 14px; height: 14px; }

.manual-intro {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  border-left: 3px solid rgba(220,38,38,0.6);
}

.manual-intro strong { color: #f87171; }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.manual-card {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.manual-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.manual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.manual-card--danger { border-color: rgba(220,38,38,0.25); }
.manual-card--danger::before { background: linear-gradient(90deg, #dc2626, #ef4444); }
.manual-card--danger .manual-card-icon { color: #f87171; }

.manual-card--success { border-color: rgba(34,197,94,0.25); }
.manual-card--success::before { background: linear-gradient(90deg, #16a34a, #22c55e); }
.manual-card--success .manual-card-icon { color: #4ade80; }

.manual-card--blue { border-color: rgba(59,130,246,0.25); }
.manual-card--blue::before { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.manual-card--blue .manual-card-icon { color: #60a5fa; }

.manual-card--purple { border-color: rgba(139,92,246,0.25); }
.manual-card--purple::before { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.manual-card--purple .manual-card-icon { color: #a78bfa; }

.manual-card--teal { border-color: rgba(20,184,166,0.25); }
.manual-card--teal::before { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.manual-card--teal .manual-card-icon { color: #2dd4bf; }

.manual-card--orange { border-color: rgba(249,115,22,0.25); }
.manual-card--orange::before { background: linear-gradient(90deg, #c2410c, #f97316); }
.manual-card--orange .manual-card-icon { color: #fb923c; }

.manual-card-icon {
  margin-bottom: 0.6rem;
}
.manual-card-icon svg { width: 22px; height: 22px; }

.manual-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}

.manual-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
}

.manual-card strong { color: rgba(255,255,255,0.9); }

.manual-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.manual-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.manual-list li svg {
  width: 14px; height: 14px;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.manual-signature {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.manual-signature strong {
  color: #fb923c;
}

@media (max-width: 768px) {
  .manual-header-banner {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  .manual-confidential-badge { width: 100%; justify-content: center; }
  .manual-grid { grid-template-columns: 1fr; }
  .manual-title { font-size: 1.3rem; }
}

/* =============================================
   TABLA DE MUTEOS — styles
   ============================================= */

/* Banner normas */
.mute-normas-banner {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.mute-normas-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 1rem;
}
.mute-normas-title svg { width: 16px; height: 16px; }

.mute-normas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.mute-norma-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.mute-norma-item svg { width: 16px; height: 16px; color: #a78bfa; flex-shrink: 0; margin-top: 2px; }
.mute-norma-item strong { color: #c4b5fd; }

.mute-examples {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}

.mute-example-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.mute-example-label svg { width: 12px; height: 12px; }

.mute-example-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mute-example-codes code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  background: rgba(109,40,217,0.2);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
}

.mute-code {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  background: rgba(109,40,217,0.2);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}

.mute-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.mute-warning-box svg { width: 16px; height: 16px; color: #fbbf24; flex-shrink: 0; margin-top: 2px; }
.mute-warning-box strong { color: #fde68a; }

/* Tabla principal */
.mute-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mute-table thead tr {
  border-bottom: 2px solid rgba(139,92,246,0.3);
}

.mute-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.mute-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.mute-table tbody tr:hover {
  background: rgba(139,92,246,0.07);
}
.mute-table tbody tr:last-child { border-bottom: none; }

.mute-table td {
  padding: 0.85rem 1rem;
  color: rgba(255,255,255,0.75);
  vertical-align: middle;
}

.infraccion-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88) !important;
}
.infraccion-cell svg { width: 15px; height: 15px; color: #a78bfa; flex-shrink: 0; }

/* Sanción header badges */
.sancion-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.sancion-badge.s1 { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.sancion-badge.s2 { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.sancion-badge.s3 { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* Duration chips */
.dur-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
}
.dur-chip.low  { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.dur-chip.mid  { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.dur-chip.high { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.dur-chip.none { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.08); }

/* Footer notes */
.mute-footer-notes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mute-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.mute-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.mute-note strong { color: rgba(255,255,255,0.9); }

.mute-note--purple {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
}
.mute-note--purple svg { color: #a78bfa; }

.mute-note--blue {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
}
.mute-note--blue svg { color: #60a5fa; }

@media (max-width: 768px) {
  .mute-normas-grid { grid-template-columns: 1fr; }
  .mute-table th, .mute-table td { padding: 0.65rem 0.5rem; font-size: 0.75rem; }
  .infraccion-cell { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* =============================================
   TABLA DE BANEOS — extra styles
   ============================================= */
.ban-normas-banner {
  border-color: rgba(239,68,68,0.25);
}
.ban-norma svg { color: #f87171 !important; }
.ban-norma strong { color: #fca5a5; }

.dur-chip.perm-chip {
  background: linear-gradient(90deg, rgba(220,38,38,0.25), rgba(109,40,217,0.2));
  color: #f87171;
  border: 1px solid rgba(220,38,38,0.4);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 1rem;
  letter-spacing: 0.03em;
}

.ban-perm-row td {
  background: rgba(220,38,38,0.05);
}
.ban-perm-row .infraccion-cell { color: #f87171 !important; }
.ban-perm-row .infraccion-cell svg { color: #f87171; }

.ban-table-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.ban-table-note svg { width: 14px; height: 14px; color: #fbbf24; flex-shrink: 0; }
.ban-table-note strong { color: #fde68a; }

.chip-note {
  color: #fbbf24;
  font-weight: 900;
  font-size: 0.9em;
}

.mute-note--red {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}
.mute-note--red svg { color: #f87171; }

/* =============================================
   EDITAR PERFIL — styles
   ============================================= */
.perfil-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Preview card */
.perfil-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
}
.perfil-preview-card > .card-title {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(140,80,255,0.1);
  margin-bottom: 0;
}
.perfil-preview-card > .perfil-preview {
  margin: 0 1.25rem 0;
}
.perfil-preview-card > .perfil-sidebar-preview {
  margin: 0 1.25rem 1.25rem;
}

.perfil-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem 1.25rem;
  background: none;
  border-radius: 0;
  border: none;
  position: relative;
  margin-top: -36px;
}

.perfil-avatar-big {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(139,92,246,0.5);
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
  overflow: hidden;
  position: relative;
}

.perfil-preview-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.perfil-preview-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.perfil-preview-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

/* Sidebar mini-preview */
.perfil-sidebar-preview {
  width: 100%;
}

.psp-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.psp-mock {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.psp-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  overflow: hidden; position: relative; flex-shrink: 0;
}

.psp-info {
  display: flex; flex-direction: column; gap: 0.1rem;
}
.psp-info span:first-child { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.psp-info span:last-child  { font-size: 0.68rem; color: rgba(255,255,255,0.35); }

/* Form card */
.perfil-form-card { display: flex; flex-direction: column; gap: 1.25rem; }

.perfil-field { display: flex; flex-direction: column; gap: 0.5rem; }
.perfil-field label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

/* Upload zone */
.perfil-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed rgba(139,92,246,0.35);
  border-radius: 12px;
  padding: 2rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
.perfil-upload-zone:hover, .perfil-upload-zone.drag-over {
  border-color: rgba(139,92,246,0.7);
  background: rgba(139,92,246,0.07);
  color: rgba(255,255,255,0.7);
}
.perfil-upload-zone svg { width: 28px; height: 28px; color: #a78bfa; }
.upload-hint { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

/* Buttons */
.perfil-save-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none; border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(109,40,217,0.4);
}
.perfil-save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.perfil-save-btn svg { width: 16px; height: 16px; }

.perfil-remove-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.perfil-remove-btn:hover { background: rgba(239,68,68,0.18); }
.perfil-remove-btn svg { width: 14px; height: 14px; }

.perfil-save-note {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
  margin: 0;
}
.perfil-save-note svg { width: 12px; height: 12px; color: #a78bfa; }

@media (max-width: 900px) {
  .perfil-layout { grid-template-columns: 1fr; }
}

/* =============================================
   SUBMIT PROGRESS BUTTON — login
   ============================================= */
.login-btn {
  position: relative;
  overflow: hidden;
}

.btn-progress {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: rgba(255,255,255,0.15);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.login-btn .btn-text,
.login-btn .btn-icon {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}

.login-btn.loading {
  background: linear-gradient(135deg, #5b21b6, #4c1d95);
  cursor: not-allowed;
}

.login-btn.loading .btn-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* =============================================
   ANUNCIOS — styles
   ============================================= */

/* Sidebar badge counter */
.sb-badge-count {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* Create card */
.anuncio-create-card {
  margin-bottom: 24px;
}
.anuncio-form { display: flex; flex-direction: column; gap: 14px; }
.anuncio-form-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.anuncio-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}
.anuncio-textarea:focus { border-color: var(--purple-3); box-shadow: 0 0 0 2px rgba(168,85,247,.15); }
.anuncio-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0 14px;
  height: 46px;
  outline: none;
  cursor: pointer;
}
.anuncio-select option { background: #1a1030; }
.anuncio-publish-btn { white-space: nowrap; margin-top: 0 !important; }

/* Anuncios list */
.anuncios-list { display: flex; flex-direction: column; gap: 16px; }

.anuncio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  border-left: 4px solid var(--purple-3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.anuncio-card:hover { transform: translateY(-2px); box-shadow: var(--glow-soft); }

.anuncio-info    { border-left-color: #60a5fa; }
.anuncio-warning { border-left-color: #f59e0b; }
.anuncio-danger  { border-left-color: #ef4444; }

.anuncio-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.anuncio-prio-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  letter-spacing: 0.5px;
}
.anuncio-fecha {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.anuncio-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}
.anuncio-delete-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.anuncio-delete-btn svg { width: 15px; height: 15px; }

.anuncio-titulo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.anuncio-mensaje {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.anuncio-autor {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.anuncio-autor svg { width: 13px; height: 13px; }
.anuncio-autor strong { color: var(--purple-4); }

/* Empty state */
.anuncios-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}
.anuncios-empty svg { width: 48px; height: 48px; opacity: 0.3; }
.anuncios-empty p { font-size: 1rem; }

/* Notif dot override (show/hide via JS) */
#notifDot { display: none; }

/* =============================================
   FIREBASE CONFIG — styles
   ============================================= */
.fb-config-card { display: flex; flex-direction: column; gap: 24px; }

.fb-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.fb-status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  flex-shrink: 0;
}

.fb-steps { display: flex; flex-direction: column; gap: 12px; }
.fb-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fb-step-num {
  background: linear-gradient(135deg, var(--purple-1), var(--fuchsia));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-step-body h4 { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fb-step-body p  { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; }
.fb-link { color: var(--purple-4); text-decoration: underline; }

.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.fb-form-row .perfil-field { flex: 1; min-width: 200px; }

.fb-btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.fb-clear-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  border-radius: var(--radius);
  padding: 0 20px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.fb-clear-btn:hover { background: rgba(239,68,68,0.22); }

/* =============================================
   ILEGALES — client tags
   ============================================= */
.illegal-cat--full {
  grid-column: 1 / -1;
}
.illegal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 4px;
}
.itag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.itag:hover { transform: translateY(-2px); }
.itag svg { width: 11px; height: 11px; }

.itag--red {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.itag--red:hover { box-shadow: 0 0 10px rgba(239,68,68,0.3); }

.itag--orange {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
  color: #fcd34d;
}
.itag--orange:hover { box-shadow: 0 0 10px rgba(245,158,11,0.3); }

.itag--link { cursor: pointer; }
/* ── Guía SS — estilos nuevos ── */
.ss-toc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: all 0.25s ease; cursor: pointer;
}
.ss-toc-item:hover {
  background: rgba(140,80,255,0.08);
  color: var(--text);
  border-color: var(--purple-3);
  transform: translateX(3px);
}
.ss-toc-num {
  background: var(--purple-1);
  color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ss-img {
  display: block; max-width: 100%; height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ss-img:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 32px rgba(140,80,255,0.2);
}
.ss-img-wrap { margin: 12px 0; }
.ss-img-caption {
  display: block; text-align: center;
  font-size: 12px; color: var(--text-muted);
  margin-top: 6px; letter-spacing: 0.5px;
}
.ss-img-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 12px 0;
}
@media (max-width: 600px) { .ss-img-row { grid-template-columns: 1fr; } }
.mute-note--blue {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.08);
}

/* =============================================
   BANNER DE PERFIL — clean version
   ============================================= */

/* Banner strip inside preview card */
.perfil-banner-preview {
  width: 100%;
  height: 110px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(90,30,200,0.35) 0%, rgba(20,8,50,0.9) 100%);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perfil-banner-placeholder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  pointer-events: none;
}
.perfil-banner-placeholder svg { width: 16px; height: 16px; }

/* Avatar overlaps banner */
.perfil-avatar-big {
  border: 3px solid #110d22 !important;
  box-shadow: 0 0 0 2px rgba(139,92,246,0.55), 0 0 20px rgba(139,92,246,0.3) !important;
  z-index: 2;
  position: relative;
  flex-shrink: 0;
}

/* Banner upload zone in form */
.perfil-banner-zone {
  height: auto !important;
  min-height: 80px !important;
  padding: 1.2rem 1rem !important;
  cursor: pointer;
  border-color: rgba(168, 85, 247, 0.5) !important;
  background: rgba(124, 58, 237, 0.06) !important;
}
.perfil-banner-zone:hover, .perfil-banner-zone.drag-over {
  border-color: rgba(168, 85, 247, 0.85) !important;
  background: rgba(124, 58, 237, 0.12) !important;
}
/* ── Server status badge offline ── */
.online-badge.badge--offline {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}
.pulse--red {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,.4);
  animation: pulseRed 1.5s infinite;
}
@keyframes pulseRed {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  70%  { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}