/* Centro de notificaciones — sigue los tokens del tema actual */

/* Clase propia, no .theme-toggle: applyTheme() reescribe el contenido
   de esos botones y borraría el contador. */
.notif-boton {
  position: relative;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-glass, rgba(255,255,255,0.05));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 12px);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast, 0.15s ease);
}
.notif-boton:hover { background: var(--bg-glass-hover, rgba(255,255,255,0.08)); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent-red, #ef4444);
  color: #fff;
  font-size: 0.75rem; font-weight: 700; line-height: 18px;
  text-align: center;
  border-radius: var(--radius-full, 9999px);
}

#notif-panel {
  position: absolute;
  top: 60px; right: 16px;
  width: min(380px, calc(100vw - 32px));
  max-height: 70vh;
  display: flex; flex-direction: column;
  background: var(--bg-secondary, #111127);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 8px 40px rgba(0,0,0,0.5));
  z-index: 3000;
  overflow: hidden;
}

.notif-encabezado {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.notif-encabezado h3 { margin: 0; font-size: 0.95rem; }
.notif-encabezado button {
  background: none; border: none; cursor: pointer;
  color: var(--accent-cyan, #06b6d4);
  font-size: 0.78rem; text-decoration: underline;
}

#notif-list { overflow-y: auto; }

.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
  cursor: pointer;
  transition: background var(--transition-fast, 0.15s ease);
}
.notif-item:hover { background: var(--bg-glass-hover, rgba(255,255,255,0.08)); }
.notif-item.sin-leer { background: var(--bg-glass, rgba(255,255,255,0.05)); }

.notif-ico { font-size: 1.2rem; flex: none; }
.notif-cuerpo { flex: 1; min-width: 0; }
.notif-cuerpo strong { display: block; font-size: 0.87rem; line-height: 1.3; }
.notif-cuerpo p {
  margin: 3px 0 0;
  font-size: 0.79rem;
  color: var(--text-secondary, #a0a0c0);
}
.notif-cuerpo time {
  display: block; margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted, #6b6b8a);
}
.notif-punto {
  width: 8px; height: 8px; flex: none; margin-top: 6px;
  background: var(--accent-red, #ef4444);
  border-radius: 50%;
}

.notif-vacio {
  padding: 34px 20px;
  text-align: center;
  color: var(--text-secondary, #a0a0c0);
}
.notif-vacio p { margin: 10px 0 4px; font-size: 0.88rem; }
.notif-vacio small { font-size: 0.75rem; color: var(--text-muted, #6b6b8a); }

/* Crear código de referido */
.crear-referido {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 560px) { .crear-referido { grid-template-columns: 1fr; } }
.crear-referido label {
  display: block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b8a);
  margin-bottom: 6px;
}
.crear-referido select {
  width: 100%;
  padding: 9px 11px;
  background: var(--bg-secondary, #111127);
  color: var(--text-primary, #f0f0ff);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius-sm, 8px);
  font-family: inherit; font-size: 0.85rem;
}
